Opened 14 years ago

Last modified 5 years ago

#14204 closed New feature

Take advantage of (newish) SQLite support for FK constraints — at Version 8

Reported by: Ramiro Morales Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: sqlite, foreign key
Cc: me@…, Simon Charette Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Ramiro Morales)

SQLite3 3.6.19 from Oct 14 2009 adds support for enforcing these constraints. See http://www.sqlite.org/foreignkeys.html

Creating this ticket to track this feature, with an initial implementation patch to get feedback. Will also open a django-dev thread.

Change History (9)

by Ramiro Morales, 14 years ago

First implementation

comment:1 by Ramiro Morales, 14 years ago

Needs documentation: set
Needs tests: set

See also #5698 and #12210.

comment:2 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

Accepted on principle; however, we need to be clear on the backwards compatibility consequences of this change. In particular, I'm concerned about automatically enabling "PRAGMA foreign_keys" just because the feature is available.

comment:3 by Ramiro Morales, 14 years ago

Summary: Take advantage of (newish) SQLlite support for FK constraintsTake advantage of (newish) SQLite support for FK constraints

comment:4 by Graham King, 13 years ago

Keywords: sqlite foreign key added
Severity: Normal
Type: New feature

comment:5 by Aymeric Augustin, 12 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 by Aymeric Augustin, 12 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 by Simon Charette, 10 years ago

#19659 was a duplicate.

comment:8 by Ramiro Morales, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top