[Django] #33670: Migrations changes to implicit primary key when primary key is altered on SQLite.

18 views
Skip to first unread message

Django

unread,
Apr 29, 2022, 6:17:37 AM4/29/22
to django-...@googlegroups.com
#33670: Migrations changes to implicit primary key when primary key is altered on
SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: Mariusz Felisiak
Felisiak |
Type: Bug | Status: assigned
Component: | Version: 4.0
Migrations |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Migrations drops explicit primary key defined on a model when it's
altered.

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

Django

unread,
Apr 29, 2022, 6:47:12 AM4/29/22
to django-...@googlegroups.com
#33670: Migrations changes to implicit primary key when primary key is altered on
SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz

| Felisiak
Type: Bug | Status: assigned
Component: Migrations | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/15643 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/33670#comment:1>

Django

unread,
Apr 29, 2022, 8:13:30 AM4/29/22
to django-...@googlegroups.com
#33670: Migrations changes to implicit primary key when primary key is altered on
SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Migrations | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David Wobrock):

* cc: David Wobrock (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/33670#comment:2>

Django

unread,
Apr 29, 2022, 8:37:53 AM4/29/22
to django-...@googlegroups.com
#33670: Migrations changes to implicit primary key when primary key is altered on
SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Migrations | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/33670#comment:3>

Django

unread,
Apr 29, 2022, 2:17:27 PM4/29/22
to django-...@googlegroups.com
#33670: Migrations changes to implicit primary key when primary key is altered on
SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: closed
Component: Migrations | Version: 4.0
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"b34238addceb6b2d40181b625da3b7b7104abfcd" b34238ad]:
{{{
#!CommitTicketReference repository=""
revision="b34238addceb6b2d40181b625da3b7b7104abfcd"
Fixed #33670 -- Fixed altering primary key on SQLite.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33670#comment:4>

Reply all
Reply to author
Forward
0 new messages