From: Kern Sibbald Date: Thu, 11 Feb 2010 16:00:00 +0000 (+0100) Subject: Apply SQLite3 update fix from bug #1497 X-Git-Tag: Release-5.2.1~1770 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=391c02ab6daeea9de1cee839886c5a62bd3b8428;p=bacula%2Fbacula Apply SQLite3 update fix from bug #1497 --- diff --git a/bacula/src/cats/update_sqlite3_tables.in b/bacula/src/cats/update_sqlite3_tables.in index d8bef9626e..0ac663bf0a 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -42,7 +42,7 @@ CREATE TABLE PathHierarchy ); CREATE INDEX pathhierarchy_ppathid - ON PathHierarchy (PPathId); + ON PathHierarchy (PPathId); CREATE TABLE PathVisibility ( @@ -54,7 +54,7 @@ CREATE TABLE PathVisibility ); CREATE INDEX pathvisibility_jobid - ON PathVisibility (JobId); + ON PathVisibility (JobId); CREATE INDEX basefiles_jobid_idx ON BaseFiles ( JobId ); @@ -62,7 +62,7 @@ UPDATE Version SET VersionId=12; COMMIT; DROP INDEX inx4; -DROP INDEX inx9; -- can generate errors +DROP INDEX IF EXISTS inx9; CREATE INDEX file_jpf_idx ON File (JobId, PathId, FilenameId); END-OF-DATA