Search in sources :

Example 1 with DfCreateSchemaProcess

use of org.dbflute.logic.replaceschema.process.DfCreateSchemaProcess 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();
        }
    }
}
Also used : DfCreateSchemaProcess(org.dbflute.logic.replaceschema.process.DfCreateSchemaProcess) SQLFailureException(org.dbflute.exception.SQLFailureException)

Aggregations

SQLFailureException (org.dbflute.exception.SQLFailureException)1 DfCreateSchemaProcess (org.dbflute.logic.replaceschema.process.DfCreateSchemaProcess)1