ValidateOnMigrate should fail for unapplied migration when outOfOrder=false #1363
What version of Flyway are you using?
4.1 via ANT (also tested in 4.3 => same behaviour)
What database are you using (type & version)?
What operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
When we try to migrate with property flyway.validateOnMigrate=true, Flyway doesn't detect not applied migration:
Step to reproduce:
What did you expect to see?
Same as step 4 above: Validate failed: Detected resolved migration not applied to database: 1.1
Action to do:
What did you see instead?
Schema "XXXX" is up to date. No migration necessary.
The text was updated successfully, but these errors were encountered:
I just encountered this with v4.0.3 as well. This is a very serious bug, as it means that the guarantees Flyway is supposed to provide no longer hold. We ran into this when someone had forgotten to merge a migration to a release branch, so it only showed up later after newer migrations had already been applied.
Right now the code in