You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one single Java-based migration on app/db/migration/defaultdb/V1__FirstMigration.scala with these contents:
package db.migration.defaultdb
import org.flywaydb.core.api.migration.jdbc.JdbcMigration
import java.sql.Connection
class V1__FirstMigration extends JdbcMigration {
override def migrate(conn: Connection) {
conn.createStatement().executeUpdate(
"""create table language (
| id integer primary key,
| name varchar(100) not null
|);""".stripMargin)
}
}
Everything seems normal to me. However, when I start my application (upon the first request) I get this error message:
[info] play - database [defaultdb] connected at jdbc:h2:mem:play
[debug] application - Directory for migration files found. db/migration/defaultdb
[error] application -
! @6ldg44m9c - Internal server error, for (GET) [/] ->
play.api.UnexpectedException: Unexpected exception[FileNotFoundException: Migration file not found. db.migration.defaultdb.V1__FirstMigration]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:166) ~[play_2.11-2.3.8.jar:2.3.8]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:130) ~[play_2.11-2.3.8.jar:2.3.8]
at scala.Option.map(Option.scala:146) ~[scala-library-2.11.5.jar:na]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:130) ~[play_2.11-2.3.8.jar:2.3.8]
at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:128) ~[play_2.11-2.3.8.jar:2.3.8]
Caused by: java.io.FileNotFoundException: Migration file not found. db.migration.defaultdb.V1__FirstMigration
at com.github.tototoshi.play2.flyway.Plugin$$anonfun$com$github$tototoshi$play2$flyway$Plugin$$migrationDescriptionToShow$3.apply(Plugin.scala:117) ~[play-flyway_2.11-1.2.1.jar:1.2.1]
at com.github.tototoshi.play2.flyway.Plugin$$anonfun$com$github$tototoshi$play2$flyway$Plugin$$migrationDescriptionToShow$3.apply(Plugin.scala:117) ~[play-flyway_2.11-1.2.1.jar:1.2.1]
at scala.Option.getOrElse(Option.scala:121) ~[scala-library-2.11.5.jar:na]
at com.github.tototoshi.play2.flyway.Plugin.com$github$tototoshi$play2$flyway$Plugin$$migrationDescriptionToShow(Plugin.scala:117) ~[play-flyway_2.11-1.2.1.jar:1.2.1]
at com.github.tototoshi.play2.flyway.Plugin$$anonfun$com$github$tototoshi$play2$flyway$Plugin$$checkState$1$$anonfun$apply$8.apply(Plugin.scala:126) ~[play-flyway_2.11-1.2.1.jar:1.2.1]
Is this a bug? Or did I miss some step?
The text was updated successfully, but these errors were encountered:
I am using Play 2.3.8 and play-flyway 1.2.1. This is my database configuration in
application.conf
:I have one single Java-based migration on
app/db/migration/defaultdb/V1__FirstMigration.scala
with these contents:Everything seems normal to me. However, when I start my application (upon the first request) I get this error message:
Is this a bug? Or did I miss some step?
The text was updated successfully, but these errors were encountered: