Skip to content

Commit 0f2c25c

Browse files
spilthwilkinsona
authored andcommitted
Clarify location for Flyway callback scripts
Closes spring-projectsgh-4947
1 parent eb3d641 commit 0f2c25c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,9 @@ addition Spring Boot provides a small set of properties in
17201720
{sc-spring-boot-autoconfigure}/flyway/FlywayProperties.{sc-ext}[`FlywayProperties`]
17211721
that can be used to disable the migrations, or switch off the location checking.
17221722

1723+
TIP: If you want to make use of http://flywaydb.org/documentation/callbacks.html[Flyway
1724+
callbacks], those scripts should also live in the `classpath:db/migration` folder.
1725+
17231726
By default Flyway will autowire the (`@Primary`) `DataSource` in your context and
17241727
use that for migrations. If you like to use a different `DataSource` you can create
17251728
one and mark its `@Bean` as `@FlywayDataSource` - if you do that remember to create

0 commit comments

Comments
 (0)