use of org.flywaydb.core.api.output.CleanResult in project flyway by flyway.
the class DbClean method clean.
public CleanResult clean() throws FlywayException {
if (configuration.isCleanDisabled()) {
throw new FlywayException("Unable to execute clean as it has been disabled with the 'flyway.cleanDisabled' property.");
}
callbackExecutor.onEvent(Event.BEFORE_CLEAN);
CleanResult cleanResult = CommandResultFactory.createCleanResult(database.getCatalog());
clean(cleanResult);
callbackExecutor.onEvent(Event.AFTER_CLEAN);
schemaHistory.clearCache();
return cleanResult;
}
Aggregations