use of org.dbflute.exception.SQLFailureException in project dbflute-core by dbflute.
the class DfReplaceSchemaTask method createSchema.
// -----------------------------------------------------
// Create Schema
// -------------
protected void createSchema(String sqlRootDir, boolean previous) {
final DfCreateSchemaProcess process = createCreateSchemaProcess(sqlRootDir);
_createSchemaFinalInfo = process.execute();
final SQLFailureException breakCause = _createSchemaFinalInfo.getBreakCause();
if (breakCause != null) {
// high priority exception
throw breakCause;
}
if (!_createSchemaFinalInfo.isFailure()) {
// because it may have low priority failure
if (!previous) {
// because previous is immutable
checkSchemaPolicyInRepsIfNeeds();
}
}
}
Aggregations