git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@855
91ce42f0-d328-0410-95d8-
f526ca767f89
--- /dev/null
+#!/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