schema.bat 453 B

123456789
  1. @call "%~dp0config.bat" 0 > nul
  2. call config2.bat
  3. IF [%1]==[create] (
  4. SchemaZen.exe create --server %DEST_SERVER% -u %DEST_USER% -p %DEST_PASSWORD% --o --database %2 --scriptDir %PORTAL%\System\%SYSTEM:~1,-1%\SQL\schema\%2
  5. ) ELSE (
  6. del /S /Q %PORTAL%\System\%SYSTEM:~1,-1%\SQL\schema\%2 > nul
  7. SchemaZen.exe script -o --server %DEST_SERVER% -u %DEST_USER% -p %DEST_PASSWORD% --database %2 --scriptDir %PORTAL%\System\%SYSTEM:~1,-1%\SQL\schema\%2
  8. )