Skip to content

Commit 0fa9467

Browse files
jmeweswilkinsona
authored andcommitted
Add hint for new dependencies required for Flyway
See gh-41574
1 parent 53b275d commit 0fa9467

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/data-initialization.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Spring Boot supports two higher-level migration tools: https://flywaydb.org/[Fly
9898
=== Execute Flyway Database Migrations on Startup
9999

100100
To automatically run Flyway database migrations on startup, add the `org.flywaydb:flyway-core` to your classpath.
101+
All databases that are not in-memory or file based need an additional dependency, e.g. `org.flywaydb:flyway-database-postgresql` is required for PostgreSQL and `org.flywaydb:flyway-mysql` is required for MySQL (see https://documentation.red-gate.com/flyway/flyway-cli-and-api/supported-databases[Supported Databases in the Flyway Documentation] for details).
101102

102103
Typically, migrations are scripts in the form `V<VERSION>__<NAME>.sql` (with `<VERSION>` an underscore-separated version, such as '`1`' or '`2_1`').
103104
By default, they are in a directory called `classpath:db/migration`, but you can modify that location by setting `spring.flyway.locations`.

0 commit comments

Comments
 (0)