Skip to content

Commit

Permalink
Merge pull request #524 from playframework/mergify/bp/2.9.x/pr-523
Browse files Browse the repository at this point in the history
[2.9.x] Downgrade h2 database to make   play-scala-isolated-slick-example work (backport #523) by @mkurz
  • Loading branch information
mergify[bot] authored Jan 16, 2024
2 parents aa453d0 + 90f3334 commit 380b40a
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" % "6.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 380b40a

Please sign in to comment.