-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Upgrade to Flyway 6.2 and support new validate migration naming property #19894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Flyway 6.2 and support new validate migration naming property #19894
Conversation
@kedar-joshi thank you for the PR. Small note: going forward, please prepare the PR on your local copy as each commit sends a notification to 3K+ watchers. |
Noted, thanks. I will take care of this in the future. |
@@ -134,6 +134,7 @@ public Flyway flyway(FlywayProperties properties, DataSourceProperties dataSourc | |||
configureFlywayCallbacks(configuration, orderedCallbacks); | |||
List<JavaMigration> migrations = javaMigrations.stream().collect(Collectors.toList()); | |||
configureJavaMigrations(configuration, migrations); | |||
configureValidateMigrationNaming(configuration, properties.isValidateMigrationNaming()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When merging, we should move this down into configureProperties
and add a comment to note why a method reference isn't being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Hi, considering v2.3.0 GA is months away, I am wondering if there is any plan to backport this to v2.2.x. |
We don’t have any plans to back port this. We won’t upgrade to a new minor of Flyway in a maintenance release of Spring Boot. |
This PR adds support for property
flyway.validateMigrationNaming
, which is added in Flyway v6.2.0 for validating naming convention of the migration files. See https://github.com/flyway/flyway/releases/tag/flyway-6.2.0.