]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/update_postgresql_tables.in
Fix unsigned/int warnings in MySQL + Correct Version table name in update...
[bacula/bacula] / bacula / src / cats / update_postgresql_tables.in
1 #!/bin/sh
2 #
3 # Shell script to update PostgreSQL tables
4 #
5 echo " "
6 echo "Depending on the size of your database,"
7 echo "this script may take several minutes to run."
8 echo " "
9 bindir=@SQL_BINDIR@
10
11 if $bindir/psql $* -f - <<END-OF-DATA
12 \c bacula
13
14 DELETE FROM Version;
15 INSERT INTO Version (VersionId) VALUES (7);
16
17 END-OF-DATA
18 then
19    echo "Update of Bacula PostgreSQL tables succeeded."
20 else
21    echo "Update of Bacula PostgreSQL tables failed."
22 fi
23 exit 0