Ticket #1082: django1082_2.diff

File django1082_2.diff, 653 bytes (added by Christopher Lenz <cmlenz@…>, 19 years ago)

Only drop constraints if backend supports_contraints

  • django/core/management.py

     
    224224             connection.rollback()
    225225         else:
    226226             output.append("DROP TABLE %s;" % backend.quote_name(klass._meta.db_table))
    227              if references_to_delete.has_key(klass):
     227             if backend.supports_constraints and references_to_delete.has_key(klass):
    228228                 for rel_class, f in references_to_delete[klass]:
    229229                     table = rel_class._meta.db_table
    230230                     col = f.column
Back to Top