properties.getProperty("before.user"), properties.getProperty("before.password"), "select * from dual");
int filesExecuted = runner.execute();
LOG.info(String.format("executed %d files%n", filesExecuted));
}
DbSupport dbSupport = DbSupportFactory.createDbSupport(connection, false);
if (!dbSupport.getCurrentSchema().getTable(flyway.getTable()).exists()) {
return;
}
String sql = "DELETE FROM " + flyway.getTable()
+ " WHERE " + dbSupport.quote("type") + "='CUSTOM'";
connection.prepareCall(sql).execute();
} catch (SQLException e) {
LOG.error(e.getMessage(), e);
} catch (IOException e) {
LOG.error(e.getMessage(), e);