We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba9a3a commit 0593cbbCopy full SHA for 0593cbb
hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
@@ -233,9 +233,7 @@ public String getAddForeignKeyConstraintString(
233
final String cols = StringHelper.join( ", ", foreignKey );
234
final String referencedCols = StringHelper.join( ", ", primaryKey );
235
return String.format(
236
- " add index %s (%s), add constraint %s foreign key (%s) references %s (%s)",
237
- constraintName,
238
- cols,
+ " add constraint %s foreign key (%s) references %s (%s)",
239
constraintName,
240
cols,
241
referencedTable,
0 commit comments