a12fcc9f5245f717a4c8150141f28b2fdafb3a9b markd Mon Dec 27 14:47:31 2010 -0800 removed comment that is no longer true diff --git src/hg/lib/hgRelate.c src/hg/lib/hgRelate.c index fc546c2..f8ce4e3 100644 --- src/hg/lib/hgRelate.c +++ src/hg/lib/hgRelate.c @@ -15,34 +15,31 @@ #include "hdb.h" static char const rcsid[] = "$Id: hgRelate.c,v 1.28 2010/04/28 17:42:53 galt Exp $"; static char extFileCreate[] = /* This keeps track of external files and directories. */ "create table %s (" "id int unsigned not null primary key," /* Unique ID across all tables. */ "name varchar(64) not null," /* Symbolic name of file. */ "path varchar(255) not null," /* Full path. Ends in '/' if a dir. */ "size bigint unsigned not null," /* Size of file (checked) */ /* Extra indices. */ "index (name))"; static char historyCreate[] = -/* This contains a row for each update made to database. - * (The idea is that this is just updated in batch.) - * It keeps track of which id global ids are used - * as well as providing a record of updates. */ +/* This contains a row for each update made to database. */ "create table history (" "ix int not null auto_increment primary key," /* Update number. */ "startId int unsigned not null," /* Start this session's ids. */ "endId int unsigned not null," /* First id for next session. */ "who varchar(255) not null," /* User who updated. */ "what varchar(255) not null," /* What they did. */ "modTime timestamp not null," /* Modification time. */ "errata varchar(255) )"; /* Deleted data */ HGID hgGetMaxId(struct sqlConnection *conn, char *tableName) /* get the maximum value of the id column in a table or zero if empry */ { /* we get a row with NULL if the table is empty */ char query[128]; char **row = NULL;