#21961: Add support for database-level cascading options
-------------------------------------+-------------------------------------
Reporter: Christophe Pettus | Owner: Nick
| Stefan
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Nick Stefan):
postgresql and mysql are fine. However, for SQLite to use ON DELETE, we
would need a new OPTIONS flag. Something like:
{{{
settings.DATABASES.["default"]["OPTIONS"]["PRAGMA_foreign_keys"] = True
}}}
(which would then lead to the database wrapper running the correct SQL:
https://sqlite.org/foreignkeys.html#fk_enable)
If I add the pragma flag, the test suite fails quite a few tests (50+).
Therefore, SQLite PRAGMA foreign keys, seems to be a bigger and separate
scope. It does have its own ticket here
https://code.djangoproject.com/ticket/14204. So postgresql and mysql are
it, for now.
--
Ticket URL: <https://code.djangoproject.com/ticket/21961#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/061.531685e0b89679b0e037e905cc41bc37%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.