It is generally possible to add a squashed migration as a dependency
together with its replaced migrations (e.g. have `0001_initial`,
`0002_second` and `0001_squashed_0002_second` in the dependency list). An
example can be found here: https://github.com/MarkusH/django-ticket-
triage/tree/0aac03c597c744909db60772b99c34c99ed7111d/app_a/migrations
The tasks I identified so far are for now:
1. Remove the safeguard
2. When squashing `0001_0002` and `0003`, the squashed migration
`0001_0003` doesn't consider the already squashed migration operations and
doesn't add them to it's operations list
3. Add squashed migrations to the dependency list
--
Ticket URL: <https://code.djangoproject.com/ticket/24529>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:1>
* owner: nobody => Bruno Alla
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:2>
* owner: Bruno Alla => (none)
* status: assigned => new
Comment:
Deassigning as I'm no longer actively working on this.
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:3>
* cc: Raphael Gaschignard (added)
* owner: (none) => Raphael Gaschignard
* status: new => assigned
Comment:
I have a potential patch for this one that I'm pretty satisfied with, so
self-assigning this one.
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14380 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:5>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:6>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:7>
* needs_docs: 1 => 0
* needs_tests: 1 => 0
Comment:
Unchecked all the "Needs..." to request review on the implementation in
principle.
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:8>
* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:9>
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:10>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24529#comment:11>