Reputation: 1524
I am using Play 2.4.0 and Slick 3.1. I am trying to figure out how I can regenerate SQL by Slick evolution. I modified my classes in models.* but no sql scripts are regenerated. Please help.
Here is my configuration:
plugin.sbt
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0")
build.sbt
libraryDependencies ++= Seq(
・・・
evolutions,
"com.typesafe.play" % "play-slick_2.11" % "1.1.1",
"com.typesafe.play" %% "play-slick-evolutions" % "1.1.1",
・・・
)
As mentioned in the official document https://www.playframework.com/documentation/2.4.x/Evolutions or the question " Regenerate evolution scripts in play 2 ", I am running my app like below.
it has this comment at the beginning:
# To stop Slick DDL generation, remove this comment and start using Evolutions
Upvotes: 5
Views: 1089
Reputation: 3828
It's not possible since 2.4, I made some workaround:
https://stackoverflow.com/a/35383919/2235939
Hope it helps
Upvotes: 1