`squashmigrations` should provide a way to define the first migration from
which on the migrations are squashed up to the one given.
--
Ticket URL: <https://code.djangoproject.com/ticket/25390>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: => MarkusH
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:1>
* needs_docs: 1 => 0
* has_patch: 0 => 1
* needs_tests: 1 => 0
Comment:
PR: https://github.com/django/django/pull/5277
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:3>
Old description:
> The `squashmigrations` command currently only supports squashing all
> migrations from 0001 to a given input. If a migration in between uses
> `RunPython` or `RunSQL` the current `squashmigrations` behavior is
> infeasible due to restrictions from those to operations.
>
> `squashmigrations` should provide a way to define the first migration
> from which on the migrations are squashed up to the one given.
New description:
The `squashmigrations` command currently only supports squashing all
migrations from 0001 to a given input. If a migration in between uses
`RunPython` or `RunSQL` the current `squashmigrations` behavior is
infeasible due to restrictions from those two operations.
`squashmigrations` should provide a way to define the first migration from
which on the migrations are squashed up to the one given.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"43f2eb7ef327126271a8c70d6fde5713947150a5" 43f2eb7e]:
{{{
#!CommitTicketReference repository=""
revision="43f2eb7ef327126271a8c70d6fde5713947150a5"
Fixed #25390 -- Allowed specifying a start migration in squashmigrations
Thanks Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25390#comment:6>