]> git.sur5r.net Git - bacula/bacula/commitdiff
For symmetry, add this file. At present, all it does is update the version table.
authorDan Langille <dan@langille.org>
Wed, 10 Dec 2003 19:09:37 +0000 (19:09 +0000)
committerDan Langille <dan@langille.org>
Wed, 10 Dec 2003 19:09:37 +0000 (19:09 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@855 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/update_postgresql_tables.in [new file with mode: 0755]

diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in
new file mode 100755 (executable)
index 0000000..5a1d492
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Shell script to update PostgreSQL tables
+#
+echo " "
+echo "Depending on the size of your database,"
+echo "this script may take several minutes to run."
+echo " "
+bindir=@SQL_BINDIR@
+
+if $bindir/psql $* -f - <<END-OF-DATA
+\c bacula
+
+UPDATE Version SET VersionId=7;
+
+END-OF-DATA
+then
+   echo "Update of Bacula PostgreSQL tables succeeded."
+else
+   echo "Update of Bacula PostgreSQL tables failed."
+fi
+exit 0