Reputation: 1171
In our Spring boot application, we have set a versioned migrations in the db.migrations resource folder
The versioned migrations(V1_0 and V1_1) are run/validated at application start- up but the repeatable migration (R__) does not seem to triggered at all.
We have an afterMigrate.sql as well, which seems to be triggered.
Could someone help me understand the correct way to trigger repeatable flyway migrations in spring boot?
https://flywaydb.org/getstarted/repeatable
Upvotes: 3
Views: 2458
Reputation: 35179
Spring Boot 1.x unfortunately ships with an ancient version of Flyway by default (3.x). Update to either Spring Boot 2.0 RC or simply the newest Flyway version (5.x). Note that if this is an existing app you must migrate to Flyway 4.2.0 first, in order for Flyway's schema history table to be automatically upgraded for you..
Upvotes: 5