Skip to content

Commit

Permalink
Fixed #2469 -- Made the "drop index" constraint names match those we …
Browse files Browse the repository at this point in the history
…create in the first place.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 9, 2006
1 parent 5ca2847 commit 7a22a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/management.py
Expand Up @@ -301,7 +301,7 @@ def get_sql_delete(app):
(style.SQL_KEYWORD('ALTER TABLE'),
style.SQL_TABLE(backend.quote_name(table)),
style.SQL_KEYWORD(backend.get_drop_foreignkey_sql()),
style.SQL_FIELD(backend.quote_name("%s_referencing_%s_%s" % (col, r_table, r_col)))))
style.SQL_FIELD(backend.quote_name('%s_refs_%s_%x' % (r_col, col, abs(hash((table, r_table))))))))
del references_to_delete[model]

# Output DROP TABLE statements for many-to-many tables.
Expand Down

0 comments on commit 7a22a51

Please sign in to comment.