From: Martin Date: Wed, 15 Nov 2023 08:17:37 +0000 (+0100) Subject: Fix #2699 About SQLite update script X-Git-Tag: Beta-15.0.1~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e5b89a3ce68f035c92a84dd8490274b4edd0d5;p=thirdparty%2Fbacula.git Fix #2699 About SQLite update script Signed-off-by: Eric Bollengier --- diff --git a/bacula/src/cats/update_sqlite3_tables.in b/bacula/src/cats/update_sqlite3_tables.in index 95f515556..183c8a2a6 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -6,11 +6,11 @@ # Shell script to update SQLite3 tables from Bacula # OLDVERSION=1022 -NEWVERSION=1024 +NEWVERSION=1026 echo " " echo "This script will update a Bacula SQLite3 database from version 12-14,$OLDVERSION to $NEWVERSION" -echo " which is needed to convert from Bacula Community version 5.0.x, 5.2.x, 7.0.x, 9.x to 11.4.x" +echo " which is needed to convert from any Bacula Communty to version 15.0.x" echo " " bindir=@SQLITE_BINDIR@ @@ -509,3 +509,166 @@ END-OF-DATA exit 1 fi fi + +if [ "$DBVERSION" -eq 1024 ] ; then + if sqlite3 $* ${db_name}.db <