You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
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)
Ran Flyway.migrate() with cleanOnValidationError = true.
What did you expect to see?
Flyway detects failed migration.
Flyway runs clean before migrate()
What did you see instead?
Flyway detects failed migration, throws exception and dies
Looking at the code in MigrationInfoImpl.validate() it's not clear if this behavior is by design or simply a typo. Consider having cleanOnValidationError also recover from this state as well. This method is called validate() after all, and I have instructed Flyway to clean on any validation error :)
I believe returning the error message instead of throwing FlywayException would fix this issue.
The text was updated successfully, but these errors were encountered: