Skip to content

Commit 46f5728

Browse files
committed
Merge pull request #41574 from jmewes
* gh-41574: Polish "Add hint for new dependencies required for Flyway" Add hint for new dependencies required for Flyway Closes gh-41574
2 parents 53b275d + 8de72c8 commit 46f5728

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ Spring Boot supports two higher-level migration tools: https://flywaydb.org/[Fly
9797
[[howto.data-initialization.migration-tool.flyway]]
9898
=== Execute Flyway Database Migrations on Startup
9999

100-
To automatically run Flyway database migrations on startup, add the `org.flywaydb:flyway-core` to your classpath.
100+
To automatically run Flyway database migrations on startup, add the appropriate Flyway module to your classpath.
101+
In-memory and file-based databases are supported by `org.flywaydb:flyway-core`.
102+
Otherwise, a database-specific module is required.
103+
For example, use `org.flywaydb:flyway-database-postgresql` with PostgreSQL and `org.flywaydb:flyway-mysql` with MySQL.
104+
See https://documentation.red-gate.com/flyway/flyway-cli-and-api/supported-databases[the Flyway Documentation] for further details.
101105

102106
Typically, migrations are scripts in the form `V<VERSION>__<NAME>.sql` (with `<VERSION>` an underscore-separated version, such as '`1`' or '`2_1`').
103107
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)