From: Kern Sibbald Date: Mon, 29 May 2017 06:52:49 +0000 (+0200) Subject: Fix database update scripts X-Git-Tag: Release-7.9.1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cf799aa79d4c1ee8961bc8c631c013214de738;p=thirdparty%2Fbacula.git Fix database update scripts --- diff --git a/bacula/src/cats/update_mysql_tables.in b/bacula/src/cats/update_mysql_tables.in index f33356fed..0c7329281 100644 --- a/bacula/src/cats/update_mysql_tables.in +++ b/bacula/src/cats/update_mysql_tables.in @@ -35,10 +35,10 @@ if [ "x$DBVERSION" = x ]; then exit 1 fi -if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 14 ] ; then +if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 15 ] ; then echo " " echo "The existing database is version $DBVERSION !!" - echo "This script can only update an existing version 12-14 version 15." + echo "This script can only update an existing version 12-15 to version 16." echo "Error. Cannot upgrade this database." echo " " exit 1 diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in index 3a7e4bc13..aa6400e07 100644 --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -34,10 +34,10 @@ if [ "x$DBVERSION" = x ]; then exit 1 fi -if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 14 ] ; then +if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 15 ] ; then echo " " echo "The existing database is version $DBVERSION !!" - echo "This script can only update an existing version 12-14, 1014-1016 database to version 1017." + echo "This script can only update an existing version 12-15 database to version 16." echo "Error. Cannot upgrade this database." echo " " exit 1 diff --git a/bacula/src/cats/update_sqlite3_tables.in b/bacula/src/cats/update_sqlite3_tables.in index 00be950ba..7595a2f56 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -22,10 +22,10 @@ DBVERSION=`sqlite3 ${db_name}.db <