if (create) {
ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(_database.adaptorChannel());
if (indexName == null) {
indexName = _defaultIndexName(false, _name, helper.columnNamesFromColumnIndexes(columnIndexes).toArray(new String[] {}));
}
String sql = helper.sqlForCreateIndex(indexName, _name, columnIndexes);
ERXJDBCUtilities.executeUpdateScript(_database.adaptorChannel(), sql);
}
else {
_indexes.addObject(new ERXMigrationIndex(indexName, false, columnIndexes));
}