Re: [Django] #34881: migrate crashes when renaming model referenced twice by ManyToManyField.through model on SQLite. (was: Model-rename migration fails with IntegrityError if m2m relations to self exist)

2 views
Skip to first unread message

Django

unread,
Sep 29, 2023, 2:53:28 AM9/29/23
to django-...@googlegroups.com
#34881: migrate crashes when renaming model referenced twice by
ManyToManyField.through model on SQLite.
----------------------------+------------------------------------
Reporter: dennisvang | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: sqlite | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* keywords: => sqlite
* stage: Unreviewed => Accepted


Comment:

Thanks for the report. As far as I'm aware, this is an issue only on
SQLite, caused by remaking a table twice, where the second remake doesn't
take into account the first alteration.

--
Ticket URL: <https://code.djangoproject.com/ticket/34881#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages