Skip to content

Commit

Permalink
Merge pull request #523 from mkurz/fix-play-scala-isolated-slick-example
Browse files Browse the repository at this point in the history
Downgrade h2 database to make   play-scala-isolated-slick-example work
  • Loading branch information
mkurz authored Jan 16, 2024
2 parents 6ae2939 + b2cea17 commit bc6ea6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions play-scala-isolated-slick-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test.mv.db
test.trace.db
4 changes: 3 additions & 1 deletion play-scala-isolated-slick-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ lazy val root = (project in file("."))
TwirlKeys.templateImports += "com.example.user.User",
libraryDependencies ++= Seq(
guice,
"com.h2database" % "h2" % "2.2.224",
"com.h2database" % "h2" % "1.4.200", // Can't use latest h2 currently: flyway-sbt comes with an outdated flyway version that does not support h2 2.x yet...:
// https://github.com/flyway/flyway-sbt/blob/7fc35d2833531b2b9e5a98a594d76fd047a077a8/build.sbt#L1
// https://github.com/flyway/flyway-sbt/issues/82#issuecomment-1636728997
ws % Test,
"org.flywaydb" % "flyway-core" % FlywayVersion % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test
Expand Down
2 changes: 1 addition & 1 deletion play-scala-isolated-slick-example/scripts/test-sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
echo "+----------------------------+"
echo "| Executing tests using sbt |"
echo "+----------------------------+"
rm -f test.mv.db
rm -f test.mv.db test.trace.db
sbt ++$MATRIX_SCALA clean flyway/flywayMigrate slickCodegen test

0 comments on commit bc6ea6e

Please sign in to comment.