MDL-32323 add windows test database init script

This commit is contained in:
Petr Skoda 2012-04-07 21:44:34 +02:00
parent e370154157
commit 27f27eb4f4

View File

@ -0,0 +1,20 @@
@ECHO OFF
CALL php %~dp0\util.php --diag > NUL 2>&1
IF ERRORLEVEL 133 GOTO drop
IF ERRORLEVEL 132 GOTO install
IF ERRORLEVEL 1 GOTO unknown
GOTO done
:drop
CALL php %~dp0\util.php --drop
IF ERRORLEVEL 1 GOTO done
:install
CALL php %~dp0\util.php --install
GOTO done
:unknown
CALL php %~dp0\util.php --diag
:done