Flyway: Add ignoreMissingMigrations flag

Created on 7 Oct 2016  路  4Comments  路  Source: flyway/flyway

What version of Flyway are you using?

4.0.3

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

Java API

What database are you using (type & version)?

h2 1.3.175

What operating system are you using?

Windows

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Removed already applied migration script

What did you expect to see?

Flyway ignoring the missing, but already applied migration

What did you see instead?

Validate failed: Detected applied migration not resolved locally

This was maybe introduced by accident with #988.

Possible solution:
Check also for the MigrationState.MISSING SUCCESS in MigrationInfoImpl::validate()

duplicate feature

Most helpful comment

馃憤 need this too

All 4 comments

The solution here would be to have something like an ignoreMissingMigrations flag, set to false by default. You could then set it to trueto get the behavior you want.

馃憤 need this too

+1

Duplicate of #1352

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Omie picture Omie  路  4Comments

flyway picture flyway  路  4Comments

eerokosk picture eerokosk  路  4Comments

feoktant picture feoktant  路  3Comments

axelfontaine picture axelfontaine  路  4Comments