Skip to content

Commit 3785156

Browse files
authored
Update README.md
1 parent ac24772 commit 3785156

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,17 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport {
130130

131131
### Use Flyway Migrate Command on MySQL/PostgreSQL
132132

133-
If you'd like to use `flyway` module, you can use `docker-controller-scala-flyway`. Mix-in `FlywaySpecSupport` then, put the sql files in `src/reosources/flyway`(`src/reosources/**` can be set to any string.), run `flywayContext.flyway.migrate()` in `afterStartContainers` method.
133+
If you'd like to use `flyway` module, you can use `docker-controller-scala-flyway`.
134+
135+
```scala
136+
libraryDependencies += Seq(
137+
"com.github.j5ik2o" %% "docker-controller-scala-scalatest" % version,
138+
"com.github.j5ik2o" %% "docker-controller-scala-mysql" % version,
139+
"com.github.j5ik2o" %% "docker-controller-scala-flyway" % version, // for flyway
140+
)
141+
```
142+
143+
Mix-in `FlywaySpecSupport` then, put the sql files in `src/reosources/flyway`(`src/reosources/**` can be set to any string.), run `flywayContext.flyway.migrate()` in `afterStartContainers` method.
134144

135145
```scala
136146
class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport with FlywaySpecSupport {

0 commit comments

Comments
 (0)