]> git.sur5r.net Git - bacula/bacula/commitdiff
Some more use DeltaSeq instead of MarkId
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 19 Apr 2011 08:31:36 +0000 (10:31 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:34 +0000 (14:44 +0200)
bacula/src/cats/dbi.c
bacula/src/cats/make_ingres_tables.in

index 714efcc96c5afd10f730187343964f59008ac3ec..c2872a6dca93d27fbf81dbcf40fb1bd104836f13 100644 (file)
@@ -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;
       }
index 40d258f76c1aadb0be630eb8a2daa05b254c5d6d..ecd518feed7a5bd0f486d4941ebd956efbe68643 100755 (executable)
@@ -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,