From: Eric Bollengier Date: Tue, 29 Mar 2022 06:58:35 +0000 (+0200) Subject: Update updatedb scripts X-Git-Tag: Release-13.0.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=453d5d66b2b4911b9696912a658a5c9ca1c47dc2;p=thirdparty%2Fbacula.git Update updatedb scripts --- diff --git a/bacula/updatedb/update_mysql_tables_1023_to_1024.in b/bacula/updatedb/update_mysql_tables_1023_to_1024.in index 07cac07d3..195a63496 100644 --- a/bacula/updatedb/update_mysql_tables_1023_to_1024.in +++ b/bacula/updatedb/update_mysql_tables_1023_to_1024.in @@ -28,6 +28,8 @@ USE ${db_name}; ALTER TABLE Object ADD ObjectStatus BINARY(1) DEFAULT 'U'; ALTER TABLE Object ADD ObjectCount INTEGER UNSIGNED DEFAULT 1; create index object_status_idx on Object (ObjectStatus); +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 1024'); UPDATE Version SET VersionId=1024; END-OF-DATA then diff --git a/bacula/updatedb/update_postgresql_tables_1023_to_1024.in b/bacula/updatedb/update_postgresql_tables_1023_to_1024.in index cb771a1a4..7b4661a13 100644 --- a/bacula/updatedb/update_postgresql_tables_1023_to_1024.in +++ b/bacula/updatedb/update_postgresql_tables_1023_to_1024.in @@ -27,6 +27,8 @@ begin; ALTER TABLE Object ADD COLUMN ObjectStatus char(1) default 'U'; ALTER TABLE Object ADD COLUMN ObjectCount integer default 1; create index object_status_idx on Object (ObjectStatus); +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 1024'); UPDATE Version SET VersionId=1024; commit; END-OF-DATA