Skip to content

Commit bc6ea6e

Browse files
authored
Merge pull request #523 from mkurz/fix-play-scala-isolated-slick-example
Downgrade h2 database to make play-scala-isolated-slick-example work
2 parents 6ae2939 + b2cea17 commit bc6ea6e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
test.mv.db
2+
test.trace.db

play-scala-isolated-slick-example/build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ lazy val root = (project in file("."))
8282
TwirlKeys.templateImports += "com.example.user.User",
8383
libraryDependencies ++= Seq(
8484
guice,
85-
"com.h2database" % "h2" % "2.2.224",
85+
"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...:
86+
// https://github.com/flyway/flyway-sbt/blob/7fc35d2833531b2b9e5a98a594d76fd047a077a8/build.sbt#L1
87+
// https://github.com/flyway/flyway-sbt/issues/82#issuecomment-1636728997
8688
ws % Test,
8789
"org.flywaydb" % "flyway-core" % FlywayVersion % Test,
8890
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test

play-scala-isolated-slick-example/scripts/test-sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
echo "+----------------------------+"
44
echo "| Executing tests using sbt |"
55
echo "+----------------------------+"
6-
rm -f test.mv.db
6+
rm -f test.mv.db test.trace.db
77
sbt ++$MATRIX_SCALA clean flyway/flywayMigrate slickCodegen test

0 commit comments

Comments
 (0)