diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc index 1edc16165cb9..a4f83f55de5f 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc @@ -101,7 +101,7 @@ To automatically run Flyway database migrations on startup, add the appropriate In-memory and file-based databases are supported by `org.flywaydb:flyway-core`. Otherwise, a database-specific module is required. For example, use `org.flywaydb:flyway-database-postgresql` with PostgreSQL and `org.flywaydb:flyway-mysql` with MySQL. -See https://documentation.red-gate.com/flyway/flyway-cli-and-api/supported-databases[the Flyway Documentation] for further details. +See https://documentation.red-gate.com/fd/supported-databases-and-versions-143754067.html[the Flyway Documentation] for further details. Typically, migrations are scripts in the form `V__.sql` (with `` an underscore-separated version, such as '`1`' or '`2_1`'). By default, they are in a directory called `classpath:db/migration`, but you can modify that location by setting `spring.flyway.locations`. @@ -137,7 +137,7 @@ If you need more control over the configuration, consider registering a javadoc: Spring Boot calls `Flyway.migrate()` to perform the database migration. If you would like more control, provide a javadoc:org.springframework.context.annotation.Bean[format=annotation] that implements javadoc:org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy[]. -Flyway supports SQL and Java https://documentation.red-gate.com/fd/callback-concept-184127466.html[callbacks]. +Flyway supports SQL and Java https://documentation.red-gate.com/fd/callbacks-275218509.html[callbacks]. To use SQL-based callbacks, place the callback scripts in the `classpath:db/migration` directory. To use Java-based callbacks, create one or more beans that implement javadoc:org.flywaydb.core.api.callback.Callback[]. Any such beans are automatically registered with javadoc:org.flywaydb.core.Flyway[].