From: Alain Spineux Date: Fri, 2 Dec 2022 16:27:38 +0000 (+0100) Subject: Fix #9715 add VolEncrypted field when upgrading the Catalog X-Git-Tag: Beta-15.0.0~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2ec36c39dbe88ced19ba89e316d576e24cfabe;p=thirdparty%2Fbacula.git Fix #9715 add VolEncrypted field when upgrading the Catalog - update files in updatedb, files in src/cats where already up2date --- diff --git a/bacula/updatedb/update_mysql_tables_1025_to_1026.in b/bacula/updatedb/update_mysql_tables_1025_to_1026.in index f0844621c..cba15eddc 100644 --- a/bacula/updatedb/update_mysql_tables_1025_to_1026.in +++ b/bacula/updatedb/update_mysql_tables_1025_to_1026.in @@ -79,7 +79,8 @@ CREATE INDEX meta_attachmentemailid ON MetaAttachment (AttachmentEmailId(255)); ALTER TABLE Media MODIFY COLUMN Protected TINYINT DEFAULT 0, - MODIFY COLUMN UseProtect TINYINT DEFAULT 0; + MODIFY COLUMN UseProtect TINYINT DEFAULT 0, + MODIFY COLUMN VolEncrypted TINYINT DEFAULT 0; ALTER TABLE Object ADD COLUMN FileIndex integer not null default 0, diff --git a/bacula/updatedb/update_postgresql_tables_1025_to_1026.in b/bacula/updatedb/update_postgresql_tables_1025_to_1026.in index 06d718736..4fb563b8f 100644 --- a/bacula/updatedb/update_postgresql_tables_1025_to_1026.in +++ b/bacula/updatedb/update_postgresql_tables_1025_to_1026.in @@ -67,6 +67,7 @@ ALTER TABLE Job ADD COLUMN Encrypted int default 0; ALTER TABLE Media ADD COLUMN Protected smallint default 0; ALTER TABLE Media ADD COLUMN UseProtect smallint default 0; +ALTER TABLE Media ADD COLUMN VolEncrypted smallint default 0; INSERT INTO Events (EventsCode, EventsType, EventsTime, EventsDaemon, EventsSource, EventsRef, EventsText) VALUES ('DU0001', 'catalog_update', NOW(), '*SHELL*', 'update_bacula_tables', 'pid$$', 'Catalog schema was updated to 1026');