Skip to content

Instantly share code, notes, and snippets.

@yngwie74
Created February 25, 2014 19:11
Show Gist options
  • Save yngwie74/9215512 to your computer and use it in GitHub Desktop.
Save yngwie74/9215512 to your computer and use it in GitHub Desktop.
call :release_delta
:: por cada version
for %%v in (105 103 201) do (
:: por cada release
for /D %%a in (C:\ruta_releases\50%%v.0300.*) do (
:: por cada build
for /D %%b in ("%%a\build-50%%v.0300.*") do (
:: aplicar el delta de version
for %%f in ("%%b\BD\650000000000*.sql") do (
copy /Y "%%f" .\mis_deltas\
bash "../migrate.sh" -D db_pruebas -i 300 -v 5.201
call :release_delta
)
)
)
)
goto :EOF
:release_delta
sqlcmd -E -d db_pruebas -Q "delete from dbo.changelog where change_number=650000000000"
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment