mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1267 - DDL issue on @OneToMany @JoinTable ... extra unnecessary index created on fk column
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user