Permalink
Browse files

Init flyway on migrate

  • Loading branch information...
1 parent 33a196c commit 306adc61f0b3815a070c61b6ca6c1652c138ed97 @prettynatty prettynatty committed Apr 27, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −0 plugin/src/main/scala/com/github/tototoshi/play2/flyway/Plugin.scala
  2. +2 −2 project/Build.scala
@@ -47,6 +47,7 @@ class Plugin(implicit app: Application) extends play.api.Plugin
val flyway = new Flyway
flyway.setDataSource(configuration.url, configuration.user, configuration.password)
flyway.setLocations(migrationFilesLocation)
+ flyway.setInitOnMigrate(true)
dbName -> flyway
}
}
View
@@ -11,10 +11,10 @@ object ApplicationBuild extends Build {
settings = Defaults.defaultSettings ++ Seq (
name := "play-flyway",
organization := "com.github.tototoshi",
- version := "0.1.2",
+ version := "0.1.3-SNAPSHOT",
scalaVersion := "2.10.0",
libraryDependencies ++= Seq(
- "play" %% "play" % "2.1.0" % "provided",
+ "play" %% "play" % "2.1.1" % "provided",
"com.googlecode.flyway" % "flyway-core" % "2.1.1",
"org.scalatest" %% "scalatest" % "1.9.1" % "test"
),

0 comments on commit 306adc6

Please sign in to comment.