Opened 9 years ago

Closed 9 years ago

#26593 closed Cleanup/optimization (fixed)

Allowed overriding SQL phrase for deferrable ForeignKeys

Reported by: Markus Holtermann Owned by: Markus Holtermann
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The sql_create_fk string in the database schema editor's contains a phrase DEFERRABLE INITIALLY DEFERRED. This phrase is supposed to be easy to override with a connection's ops.deferrable_sql() method. However, the backend operation method is not used at all. Therefore, 3rd party backends have to override the sql_create_fk string in order to adjust it.

Change History (3)

comment:1 by Markus Holtermann, 9 years ago

Status: newassigned
Type: UncategorizedBug

comment:2 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin
Type: BugCleanup/optimization

comment:3 by Markus Holtermann <info@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In deeffde8:

Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditor

Note: See TracTickets for help on using tickets.
Back to Top