Ticket #119 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Add remove_foreign_key

Reported by: morrowa@… Owned by: andrew
Priority: minor Milestone: 0.5
Component: databaseapi Version: 0.6-pre
Keywords: foreign_key Cc:

Description

I migrated a table and changed a ForeignKey? to a GenericForeignKey?. As a result, I needed to manually drop the ForeignKey? constraint. I've added a method to db.generic to drop foreign key constraints a specific column. Attached is a patch.

Attachments

add_delete_foreign_key (962 bytes) - added by morrowa@… 6 years ago.
Patch to add delete_foreign_key method to db.generic

Change History

Changed 6 years ago by morrowa@…

Patch to add delete_foreign_key method to db.generic

comment:1 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.5

I knew that constraints-fetching code would prove useful. Committed in [209].

Note: See TracTickets for help on using tickets.