Currently if all of the replaced/original migrations have been run,
{{{showmigrations}}} will output that the related squashed migration has
been applied with an [X] in the output even if that has not yet been
recorded by the migration recorder. However, it is currently a requirement
that {{{migrate}}} be run to record this applied state for the squashed
migration before the original migrations are removed. If a deployment
process is looking for an empty [ ] to know to run the migration then this
may trip it up.
This case is to consider an output for {{{showmigrations}}} which can
indicate that this migration has only been "soft" applied, that is applied
but not recorded yet.
Changes to the planner for such an output may also impact #24900.
--
Ticket URL: <https://code.djangoproject.com/ticket/25250>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:1>
* owner: nobody => Jacob Walls
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14513 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:3>
* type: New feature => Cleanup/optimization
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"2dfc1066a0d31c7e443e1c7b8590b101a645bf2d" 2dfc106]:
{{{
#!CommitTicketReference repository=""
revision="2dfc1066a0d31c7e443e1c7b8590b101a645bf2d"
Fixed #25250 -- Clarified partially recorded state of squashed migrations
in showmigrations --list.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25250#comment:6>