Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
j5ik2o committed Jun 29, 2021
1 parent b6dd801 commit b62e551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport {

### Use Flyway Migrate Command on MySQL/PostgreSQL

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`, run `flywayContext.flyway.migrate()` in `afterStartContainers` method.
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.

```scala
class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport with FlywaySpecSupport {
Expand Down Expand Up @@ -165,7 +165,7 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport w
)

override protected def afterStartContainers(): Unit = {
// Put the sql files in `src/reosources/flyway`.
// Configure the sql files in `src/reosources/flyway`.
val flywayContext = createFlywayContext(FlywayConfig(Seq("flyway")))
// Execute flywayMigrate command
flywayContext.flyway.migrate()
Expand Down

0 comments on commit b62e551

Please sign in to comment.