Skip to content
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

New option to allow for 'Ignored' migrations in 'validate' command: 'ignoreIgnoredMigrations' #1865

bkaminnski opened this issue Dec 12, 2017 · 2 comments


Copy link

bkaminnski commented Dec 12, 2017

What version of Flyway are you using?


Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)


What database are you using (type & version)?

Oracle 12C

What operating system are you using?

Windows Server 2012

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)

What did you expect to see?
What did you see instead?

I would like to be able to ignore "Ignored" migrations when running "validate" command.

These are migrations that were added in between already migrated migrations in this version. For example: we have migrations available on the classpath with versions from 1.0 to 3.0. The schema history table indicates that version 1 was finished on 1.0.15, and the next one was 2.0.0. But with the next release a new migration was added to version 1: 1.0.16. Such scenario is ignored by migrate command, but by default is rejected by validate. When ignoreIgnoredMigrations is enabled, such case will not be reported by validate command. This is useful for situations where one must be able to deliver complete set of migrations in a delivery package for multiple versions of the product, and allows for further development of older versions.

Copy link

I just made a pull request for this new feature: #1866.

@axelfontaine axelfontaine added this to the Flyway 5.1.0 milestone Dec 13, 2017
Copy link

Fixed with pull request. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants