Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Init flyway on migrate

  • Loading branch information...
commit 306adc61f0b3815a070c61b6ca6c1652c138ed97 1 parent 33a196c
@prettynatty prettynatty authored
View
1  plugin/src/main/scala/com/github/tototoshi/play2/flyway/Plugin.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
4 project/Build.scala
@@ -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"
),
Please sign in to comment.
Something went wrong with that request. Please try again.