]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/fix_postgresql_tables.cmd
More line-end cleanup
[bacula/bacula] / bacula / src / win32 / cats / fix_postgresql_tables.cmd
1 rem \r
2 rem  Shell script to fix PostgreSQL tables in version 8\r
3 rem \r
4 \r
5 echo " "\r
6 echo "This script will fix a Bacula PostgreSQL database version 8"\r
7 echo "Depending on the size of your database,"\r
8 echo "this script may take several minutes to run."\r
9 echo " "\r
10 #\r
11 # Set the following to the path to psql.\r
12 bindir=****EDIT-ME to be the path to psql****\r
13 \r
14 $bindir/psql $* -f fix_postgresql_tables.sql\r
15 if ERRORLEVEL 1 GOTO :ERROR\r
16 echo "Update of Bacula PostgreSQL tables succeeded."\r
17 EXIT /b 0\r
18 GOTO :EOF\r
19 \r
20 :ERROR\r
21 echo "Update of Bacula PostgreSQL tables failed."\r
22 EXIT /b 1\r