Should this comment be updated?
--
Ticket URL: <https://code.djangoproject.com/ticket/35156>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Hi,
It seems you might be correct. The paragraph of documentation you linked
to was introduced 14 years ago with #13316, whereas FK constraint were
turned on in sqlite only 7 years ago with #14204 (I found that using the
"blame" feature on github).
So we should fix this, but that leaves me with two questions:
1) Is the comment about MyISAM tables still correct then?
2) Are there other places in the documentation that could be incorrect
with regards to sqlite and FK constraints?
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:1>
Replying to [comment:1 Baptiste Mispelon]:
> 1) Is the comment about MyISAM tables still correct then?
Yes, it is https://dev.mysql.com/doc/refman/8.3/en/ansi-diff-foreign-
keys.html:
> ''"For storage engines that do not support foreign keys (such as
MyISAM),..."''
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:2>
> 2) Are there other places in the documentation that could be incorrect
with regards to sqlite and FK constraints?
I just looked and didn't find any.
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:3>
* owner: nobody => bcail
* status: new => assigned
Comment:
I can open a PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17803 PR 17803]
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:5>
* type: Uncategorized => Cleanup/optimization
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b3dc80682e678b20c89fb2a430c0bc77960a29ac" b3dc8068]:
{{{#!CommitTicketReference repository=""
revision="b3dc80682e678b20c89fb2a430c0bc77960a29ac"
Fixed #35156 -- Removed outdated note about not supporting foreign keys by
SQLite.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:7>
In [changeset:"d28c61b777d69e8be724da9287d2bc74c784b802" d28c61b]:
{{{#!CommitTicketReference repository=""
revision="d28c61b777d69e8be724da9287d2bc74c784b802"
[5.0.x] Fixed #35156 -- Removed outdated note about not supporting foreign
keys by SQLite.
Backport of b3dc80682e678b20c89fb2a430c0bc77960a29ac from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35156#comment:8>