Clarify location for Flyway callback scripts

Closes gh-4947
This commit is contained in:
Brian Kelly
2016-01-14 13:33:11 -05:00
committed by Andy Wilkinson
parent eb3d64108e
commit 0f2c25c4b8

View File

@@ -1720,6 +1720,9 @@ addition Spring Boot provides a small set of properties in
{sc-spring-boot-autoconfigure}/flyway/FlywayProperties.{sc-ext}[`FlywayProperties`]
that can be used to disable the migrations, or switch off the location checking.
TIP: If you want to make use of http://flywaydb.org/documentation/callbacks.html[Flyway
callbacks], those scripts should also live in the `classpath:db/migration` folder.
By default Flyway will autowire the (`@Primary`) `DataSource` in your context and
use that for migrations. If you like to use a different `DataSource` you can create
one and mark its `@Bean` as `@FlywayDataSource` - if you do that remember to create