Skip to content

Instantly share code, notes, and snippets.

@canujohann
Last active October 15, 2015 08:11
Show Gist options
  • Save canujohann/445488209807eaaa1706 to your computer and use it in GitHub Desktop.
Save canujohann/445488209807eaaa1706 to your computer and use it in GitHub Desktop.
flyway Install

新規DBを作成

環境に合わせてDBを作成してください

create database xxx_flyway;

設定ファイルを変更

conf/flyway.properties

flyway.url=jdbc:mysql://localhost/flysample
flyway.user=<ユーザー名>
flyway.password=<パスワード>

DB マイグレーション・更新

情報マイグレーションを行います。

Windows環境

flyway.exe migrate

Mac環境

./flyway migrate

以上 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment