From: Marco van Wieringen Date: Tue, 19 Apr 2011 08:31:36 +0000 (+0200) Subject: Some more use DeltaSeq instead of MarkId X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0717c096fa8f9e3558fb0f55c40d99f0cad6a9e1;p=bacula%2Fbacula Some more use DeltaSeq instead of MarkId --- diff --git a/bacula/src/cats/dbi.c b/bacula/src/cats/dbi.c index 714efcc96c..c2872a6dca 100644 --- a/bacula/src/cats/dbi.c +++ b/bacula/src/cats/dbi.c @@ -1195,13 +1195,13 @@ bool B_DB_DBI::sql_batch_start(JCR *jcr) goto ok_out; case SQL_TYPE_POSTGRESQL: if (!sql_query("CREATE TEMPORARY TABLE batch (" - "fileindex int," - "jobid int," - "path varchar," - "name varchar," - "lstat varchar," - "md5 varchar," - "markid int)")) { + "FileIndex int," + "JobId int," + "Path varchar," + "Name varchar," + "LStat varchar," + "MD5 varchar," + "DeltaSeq int)")) { Dmsg0(500, "sql_batch_start failed\n"); goto bail_out; } diff --git a/bacula/src/cats/make_ingres_tables.in b/bacula/src/cats/make_ingres_tables.in index 40d258f76c..ecd518feed 100755 --- a/bacula/src/cats/make_ingres_tables.in +++ b/bacula/src/cats/make_ingres_tables.in @@ -72,6 +72,7 @@ CREATE TABLE file JobId INTEGER NOT NULL, PathId INTEGER NOT NULL, FilenameId INTEGER NOT NULL, + DeltaSeq INTEGER NOT NULL DEFAULT 0, MarkId INTEGER NOT NULL DEFAULT 0, LStat VARBYTE(255) NOT NULL, Md5 VARBYTE(255) NOT NULL,