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
Add an 'ignorePendingMigrations' configuration option #2128
Comments
This is already possible by passing |
@axelfontaine |
Hmm, the right configuration for my use case seems to be to use |
Versioned migrations aside, I can't find any combination of existing flags that will pass validation with changes to a repeatable migration. It seems that might only be achievable with an |
@yjo Thanks for the clarifications. I am starting to warm to the idea of adding this. Reopening. |
Add an 'ignorePendingMigrations' option to suppress validation errors caused by the availability of not-yet-applied migrations.
My use case is for a CI/CD pipeline - while developers are working on a feature branch they should be able to create and modify migrations for that feature. However, we should be able to detect and break the build when changes are made to versioned migrations that have already been applied to (e.g.) our production database. Running
flyway validate
withignorePendingMigrations=true
would support this scenario and be consistent with the existingignore*Migrations
options.The text was updated successfully, but these errors were encountered: