HHH-2155 mysql dialect should not generate automatically index for

foreign key
This commit is contained in:
Brett Meyer 2013-10-07 14:30:48 -04:00
parent 0ba9a3a289
commit 0593cbbc5a
1 changed files with 1 additions and 3 deletions

View File

@ -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,