File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2114,6 +2114,15 @@ in external properties.
2114
2114
There is a {github-code}/spring-boot-samples/spring-boot-sample-flyway[Flyway sample] so
2115
2115
you can see how to set things up.
2116
2116
2117
+ You can also use Flyway to provide data for specific scenarios. For example, you can
2118
+ place test-specific migrations in `src/test/resources` and they will only be run when your
2119
+ application starts for testing. If you want to be more sophisticated you can use
2120
+ profile-specific configuration to customize `flyway.locations` so that certain migrations
2121
+ will only run when a particular profile is active. For example, in
2122
+ `application-dev.properties` you could set `flyway.locations` to
2123
+ `classpath:/db/migration, claspath:/dev/db/migration` and migrations in `dev/db/migration`
2124
+ will only run when the `dev` profile is active.
2125
+
2117
2126
2118
2127
2119
2128
[[howto-execute-liquibase-database-migrations-on-startup]]
You can’t perform that action at this time.
0 commit comments