Created
November 15, 2017 08:13
-
-
Save zserghei/470cc2dc5bc4dea52609b5acc376f5b3 to your computer and use it in GitHub Desktop.
Flyway wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ] | |
then | |
echo "Please specify argument." | |
echo "create, clean, info, migrate" | |
else | |
case `uname` in | |
MSYS*) | |
cmd="\"${FLYWAY_HOME}\flyway.cmd\"" | |
;; | |
MINGW*) | |
cmd="\"${FLYWAY_HOME}\flyway.cmd\"" | |
;; | |
CYGWIN*) | |
cmd="\"${FLYWAY_HOME}\flyway.cmd\"" | |
;; | |
*) | |
cmd=$FLYWAY_HOME/flyway | |
;; | |
esac | |
if [ $1 = "create" ] | |
then | |
eval $cmd clean -configFile=test.conf | |
eval $cmd migrate -configFile=test.conf | |
else | |
eval $cmd $1 -validateOnMigrate=false -outOfOrder=true -configFile=test.conf | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment