// there are common columns
CompositeStructuralChange<DBIndex> indexChange = new IndexChange(index1);
OrderedListComparator<DBColumn, DBIndex> comparator = new IndexColumnListComparator();
comparator.compareComponents(columns(index1), columns(index2), indexChange);
if (index1.isUnique() != index2.isUnique())
indexChange.addSubChange(new IndexUniquenessChange(index2));
if (indexChange.getSubChanges().size() > 0)
tableChange.addSubChange(indexChange);
}
}