]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/update_postgresql_tables.cmd
More line-end cleanup
[bacula/bacula] / bacula / src / win32 / cats / update_postgresql_tables.cmd
1 rem \r
2 rem  Shell script to update PostgreSQL tables from version 1.38 to 1.39\r
3 rem \r
4 \r
5 echo " "\r
6 echo "This script will update a Bacula PostgreSQL database from version 9 to 10"\r
7 echo " which is needed to convert from Bacula version 1.38.x to 1.39.x or higher"\r
8 echo "Depending on the size of your database,"\r
9 echo "this script may take several minutes to run."\r
10 echo " "\r
11 bindir=@SQL_BINDIR@\r
12 \r
13 $bindir/psql -f update_postgresql_tables.sql -d bacula $*\r
14 if ERRORLEVEL 1 GOTO :ERROR\r
15 echo "Update of Bacula PostgreSQL tables succeeded."\r
16 EXIT /b 0\r
17 GOTO :EOF\r
18 \r
19 :ERROR\r
20 echo "Update of Bacula PostgreSQL tables failed."\r
21 EXIT /b 1\r