Upgrade to Flyway 5.1.3

Closes gh-13672
This commit is contained in:
Andy Wilkinson
2018-07-03 13:46:13 +01:00
parent 2348047450
commit b6b37c91bb
8 changed files with 104 additions and 17 deletions

View File

@@ -2225,9 +2225,10 @@ more control, provide a `@Bean` that implements
Flyway supports SQL and Java https://flywaydb.org/documentation/callbacks.html[callbacks].
To use SQL-based callbacks, place the callback scripts in the `classpath:db/migration`
folder. To use Java-based callbacks, create one or more beans that implement
`FlywayCallback` or, preferably, extend `BaseFlywayCallback`. Any such beans are
automatically registered with `Flyway`. They can be ordered by using `@Order` or by
implementing `Ordered`.
`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