Use the correct constraint name in MSSQL TFK references
@@ -75,7 +75,7 @@ class MSSQLDialect(SQLDialect):
@sqltype_for('reference TFK')
def type_reference_tfk(self):
- return ' CONSTRAINT FK_%(foreign_table)s_PK FOREIGN KEY ' + \
+ return ' CONSTRAINT FK_%(constraint_name)s_PK FOREIGN KEY ' + \
'(%(field_name)s) REFERENCES %(foreign_table)s ' + \
'(%(foreign_key)s) ON DELETE %(on_delete_action)s'
