Yohei Onishi
Yohei Onishi

Reputation: 1524

How to regenerate SQL scripts by Play Slick Evolution

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.

Upvotes: 5

Views: 1089

Answers (1)

Michał Jurczuk
Michał Jurczuk

Reputation: 3828

It's not possible since 2.4, I made some workaround:

https://stackoverflow.com/a/35383919/2235939

Hope it helps

Upvotes: 1

Related Questions