Opened 9 years ago
Closed 9 years ago
#25390 closed New feature (fixed)
Allow specifying a start migration in squashmigrations
Description (last modified by ) ¶
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.
Change History (6)
comment:1 by , 9 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 9 years ago
Has patch: | set |
---|---|
Needs documentation: | unset |
Needs tests: | unset |
comment:3 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 9 years ago
Description: | modified (diff) |
---|
comment:5 by , 9 years ago
Summary: | Add support to specify a start migration in squashmigrations → Allow specifying a start migration in squashmigrations |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
PR: https://github.com/django/django/pull/5277