Skip to content

Instantly share code, notes, and snippets.

@seriwb
Created February 16, 2018 05:42
Show Gist options
  • Save seriwb/3d684f63abca9188e9c8bca86353707e to your computer and use it in GitHub Desktop.
Save seriwb/3d684f63abca9188e9c8bca86353707e to your computer and use it in GitHub Desktop.
MyBatis Migrations用、複数DBのマイグレーションスクリプトサンプル
#!/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