From 8aca3ab7b9f10d54da12eb6c8ced5f012eb6aa79 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 27 Dec 2015 13:23:51 +0100 Subject: [PATCH] Apply patch from bug #2165 to fix the update sqlite3 script --- bacula/ChangeLog | 2 - bacula/src/cats/update_sqlite3_tables.in | 73 ++++++++++++++++++++---- 2 files changed, 62 insertions(+), 13 deletions(-) diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 6ffaa2fc9b..9029f06b95 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -3,8 +3,6 @@ Release Version 7.2.0 - - 12Aug15 - Put back missing close_msg(NULL) to flush daemon messages at job end - Add LICENSE-FOSS and update LICENSE for baculum diff --git a/bacula/src/cats/update_sqlite3_tables.in b/bacula/src/cats/update_sqlite3_tables.in index 0f1f15abf6..bd468c650a 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -3,11 +3,11 @@ # Copyright (C) 2000-2015 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # -# Shell script to update MySQL tables from Bacula Community version +# Shell script to update SQLite tables from Bacula Community version # 5.0.x, 5.2.x, 7.0.x # echo " " -echo "This script will update a Bacula MySQL database from version 12-14 to 15" +echo "This script will update a Bacula SQLite database from version 12-14 to 15" echo " " echo "Depending on the current version of your catalog, you may have to run this script" echo " multiple times" @@ -76,19 +76,70 @@ fi if [ "$DBVERSION" = 14 ] ; then sqlite3 $* ${db_name}.db <