[Django] #34529: Squashing migrations with Meta.index_together -> indexes transition should remove deprecation warnings.

21 views
Skip to first unread message

Django

unread,
May 1, 2023, 1:05:30 PM5/1/23
to django-...@googlegroups.com
#34529: Squashing migrations with Meta.index_together -> indexes transition should
remove deprecation warnings.
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: Mariusz Felisiak
Felisiak |
Type: Bug | Status: assigned
Component: | Version: 4.2
Migrations |
Severity: Release | Keywords:
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Squashing migrations with `Meta.index_together` -> `Meta.indexes`
transition should remove deprecation warnings. As far as I'm aware, it's a
4.2 release blocker because you cannot get rid of the `index_together`
deprecation warnings without rewriting migrations, see
[https://code.djangoproject.com/ticket/34525#comment:18 comment].

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

Django

unread,
May 1, 2023, 1:06:23 PM5/1/23
to django-...@googlegroups.com
#34529: Squashing migrations with Meta.index_together -> indexes transition should
remove deprecation warnings.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz

| Felisiak
Type: Bug | Status: assigned
Component: Migrations | Version: 4.2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

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

* stage: Unreviewed => Accepted


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

Django

unread,
May 2, 2023, 4:03:03 AM5/2/23
to django-...@googlegroups.com
#34529: Squashing migrations with Meta.index_together -> indexes transition should
remove deprecation warnings.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Migrations | Version: 4.2
Severity: Release blocker | 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 Mariusz Felisiak):

* has_patch: 0 => 1


Comment:

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

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

Django

unread,
May 3, 2023, 7:07:11 AM5/3/23
to django-...@googlegroups.com
#34529: Squashing migrations with Meta.index_together -> indexes transition should
remove deprecation warnings.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: closed
Component: Migrations | Version: 4.2
Severity: Release blocker | 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:"8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb" 8e2460d5]:
{{{
#!CommitTicketReference repository=""
revision="8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb"
Fixed #34529, Refs #34525 -- Reduced index operations with
Meta.indexes/index_together when optimizing migrations.

This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.

Follow up to f81032572107846922745b68d5b7191058fdd5f5.
}}}

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

Django

unread,
May 3, 2023, 7:10:42 AM5/3/23
to django-...@googlegroups.com
#34529: Squashing migrations with Meta.index_together -> indexes transition should
remove deprecation warnings.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: closed
Component: Migrations | Version: 4.2
Severity: Release blocker | 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
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"290fd5ecece400490ad6bb557720d3b76f647eaf" 290fd5ec]:
{{{
#!CommitTicketReference repository=""
revision="290fd5ecece400490ad6bb557720d3b76f647eaf"
[4.2.x] Fixed #34529, Refs #34525 -- Reduced index operations with
Meta.indexes/index_together when optimizing migrations.

This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.

Follow up to f81032572107846922745b68d5b7191058fdd5f5.

Backport of 8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb from main.
}}}

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

Reply all
Reply to author
Forward
0 new messages