From 0f2c25c4b8f4d562fd7c45835b63e3f0d25e9155 Mon Sep 17 00:00:00 2001 From: Brian Kelly Date: Thu, 14 Jan 2016 13:33:11 -0500 Subject: [PATCH] Clarify location for Flyway callback scripts Closes gh-4947 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 1488859d18..e37ab59dea 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -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