]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/update_mysql_tables.cmd
Fix remaining issues with Microsoft Visual Studio build.
[bacula/bacula] / bacula / src / win32 / cats / update_mysql_tables.cmd
1 rem\r
2 rem Script to update MySQL tables from version 1.38 to 1.39\r
3 rem\r
4 echo " "\r
5 echo "This script will update a Bacula MySQL database from version 9 to 9"\r
6 echo "Depending on the size of your database,"\r
7 echo "this script may take several minutes to run."\r
8 echo " "\r
9 \r
10 if %SQL_BINDIR%/mysql $* -f < update_mysql_tables.sql\r
11 set RESULT=%ERRORLEVEL%\r
12 if %RESULT% GTR 0 goto :ERROR\r
13 echo "Update of Bacula MySQL tables succeeded."\r
14 exit /b 0\r
15 \r
16 :ERROR\r
17 echo "Update of Bacula MySQL tables failed."\r
18 exit /b %RESULT%\r