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)
Java API
What database are you using (type & version)?
MySQL 5.6
What operating system are you using?
Windows 10
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:
What version of Flyway are you using?
4.1.1
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)?
MySQL 5.6
What operating system are you using?
Windows 10
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Ran
Flyway.migrate()
withcleanOnValidationError = true
.What did you expect to see?
clean
beforemigrate()
What did you see instead?
Looking at the code in
MigrationInfoImpl.validate()
it's not clear if this behavior is by design or simply a typo. Consider havingcleanOnValidationError
also recover from this state as well. This method is calledvalidate()
after all, and I have instructed Flyway to clean on any validation error :)I believe
return
ing the error message instead of throwingFlywayException
would fix this issue.The text was updated successfully, but these errors were encountered: