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