Whether to automatically call clean or not when a validation error occurs.
This is exclusively intended as a convenience for development. Even though we strongly recommend not to change migration scripts once they have been checked into SCM and run, this provides a way of dealing with this case in a smooth manner. The database will be wiped clean automatically, ensuring that the next migration will bring you back to the state checked into SCM.
Warning ! Do not enable in production !
false
./flyway -cleanOnValidationError="true" validate
flyway.cleanOnValidationError=true
FLYWAY_CLEAN_ON_VALIDATION_ERROR=true
Flyway.configure()
.cleanOnValidationError(true)
.load()
flyway {
cleanOnValidationError = true
}
<configuration>
<cleanOnValidationError>true</cleanOnValidationError>
</configuration>