From dc49c64e56d68a69f9a4b56a816532c9d6a138b8 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 13 Nov 2024 16:34:30 -0800 Subject: [PATCH] Remove FlywayCallback reference in documentation Closes gh-43233 --- .../docs/antora/modules/how-to/pages/data-initialization.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc index 73fe1a023c..e75fe60ed8 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc @@ -142,7 +142,6 @@ To use SQL-based callbacks, place the callback scripts in the `classpath:db/migr To use Java-based callbacks, create one or more beans that implement `Callback`. Any such beans are automatically registered with `Flyway`. They can be ordered by using `@Order` or by implementing `Ordered`. -Beans that implement the deprecated `FlywayCallback` interface can also be detected, however they cannot be used alongside `Callback` beans. By default, Flyway autowires the (`@Primary`) `DataSource` in your context and uses that for migrations. If you like to use a different `DataSource`, you can create one and mark its `@Bean` as `@FlywayDataSource`.