Fix migrations

This commit is contained in:
2024-12-02 12:44:56 +01:00
parent 235bb78b69
commit b005b43201

View File

@@ -213,9 +213,11 @@ public abstract class BaseMigration implements MigrationModelInterface {
}
protected void dropTable(String tableName) throws SQLException, IOException {
if (existsTable(tableName)) {
String dropSql = "DROP TABLE " + tableName;
executeStatement(dropSql);
}
}
protected void createSetupQuery(String codQuery, String name, String query) throws SQLException, IOException {
if (UtilityString.isNullOrEmpty(codQuery)) {