diff --git a/flyway-database-db2zOS/src/main/java/org/flywaydb/community/database/db2z/DB2ZDatabaseType.java b/flyway-database-db2zOS/src/main/java/org/flywaydb/community/database/db2z/DB2ZDatabaseType.java index 735e466..eff3434 100644 --- a/flyway-database-db2zOS/src/main/java/org/flywaydb/community/database/db2z/DB2ZDatabaseType.java +++ b/flyway-database-db2zOS/src/main/java/org/flywaydb/community/database/db2z/DB2ZDatabaseType.java @@ -91,4 +91,10 @@ public SqlScriptExecutorFactory createSqlScriptExecutorFactory(final JdbcConnect return (connection, undo, batch, outputQueryResults) -> new DefaultSqlScriptExecutor(new DB2ZJdbcTemplate(connection, thisRef), callbackExecutor, undo, finalSupportsBatch && batch, outputQueryResults, statementInterceptor); } + + @Override + public int getPriority() { + // DB2/zOS needs to be checked in advance of DB2 + return 1; + } }