#1267 - DDL issue on @OneToMany @JoinTable ... extra unnecessary index created on fk column

This commit is contained in:
Rob Bygrave committed 2018-02-22 22:09:53 +13:00
1 parent 83384c6f0e
commit 4d122ea05b
2 files changed
+9

No files matched your search

@@ -656,4 +656,12 @@ public class MTable {
return draftTableName + "." + references.substring(lastDot + 1);
}
/**
* Clear the indexes on the foreign keys as they are covered by unique constraints.
*/
public void clearForeignKeyIndexes() {
for (MCompoundForeignKey compoundKey : compoundKeys) {
compoundKey.setIndexName(null);
}
}
}