Ticket #119 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 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:


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.


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

Change History

Changed 5 years ago by morrowa@…

Patch to add delete_foreign_key method to db.generic

comment:1 Changed 5 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].


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.