assertChange(IndexDeletion.class, DBIndex.class, "idx", ChangeSeverity.REORGANIZATION, tableChanges.get(0));
}
public void testIndexOnDifferentColumn() {
// given a table of which an index was redefined to another column
DBTable table1 = createTableWithColumns("tbl", 2);
new DBNonUniqueIndex("idx", true, table1, "col1");
DBTable table2 = createTableWithColumns("tbl", 2);
new DBNonUniqueIndex("idx", true, table1, "col2");
SchemaChange schemaChange = new SchemaChange(config);
// when comparing the tables
new TableComparator(config).compareObjects(table1, table2, schemaChange);
// then the result must be an index deletion and an index creation