HHH-2155 mysql dialect should not generate automatically index for
foreign key
This commit is contained in:
parent
0ba9a3a289
commit
0593cbbc5a
|
@ -233,9 +233,7 @@ public class MySQLDialect extends Dialect {
|
|||
final String cols = StringHelper.join( ", ", foreignKey );
|
||||
final String referencedCols = StringHelper.join( ", ", primaryKey );
|
||||
return String.format(
|
||||
" add index %s (%s), add constraint %s foreign key (%s) references %s (%s)",
|
||||
constraintName,
|
||||
cols,
|
||||
" add constraint %s foreign key (%s) references %s (%s)",
|
||||
constraintName,
|
||||
cols,
|
||||
referencedTable,
|
||||
|
|
Loading…
Reference in New Issue