// AK: FIXME we should try with the DROP options enabled and re-try with the options disabled
// so we catch the case when we
EODatabaseContext databaseContext = EOUtilities.databaseContextForModelNamed(ec, modelName);
ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(databaseContext);
String sql = helper.createSchemaSQLForEntitiesInModelWithName(null, modelName);
NSArray sqls = helper.splitSQLStatements(sql);
EOAdaptorChannel channel = databaseContext.availableChannel().adaptorChannel();
ERXJDBCUtilities.executeUpdateScript(channel, sql);
}
public void createTables(EOEditingContext ec) throws SQLException {