Created
February 16, 2018 05:42
-
-
Save seriwb/3d684f63abca9188e9c8bca86353707e to your computer and use it in GitHub Desktop.
MyBatis Migrations用、複数DBのマイグレーションスクリプトサンプル
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/bash | |
MIGRATE_ENV= | |
if [ -n "$1" ]; then | |
MIGRATE_ENV="--env=$1" | |
fi | |
cd database_name1 | |
migrate up $MIGRATE_ENV | |
cd ../database_name2 | |
migrate up $MIGRATE_ENV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment