#23359 closed New feature (fixed)
Add ability to show the migration plan
| Reported by: | Markus Holtermann | Owned by: | Markus Holtermann |
|---|---|---|---|
| Component: | Migrations | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Markus Holtermann | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The migrate command already allows one to list all the migrations and their status (applied / not applied) grouped and sorted by app name. Similar to this it would be nice to show the migration plan, i.e. which migration is applied when.
Change History (15)
comment:1 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 11 years ago
| Has patch: | set |
|---|
comment:3 by , 11 years ago
| Easy pickings: | unset |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:4 by , 11 years ago
As shortly discussed with jax on IRC, having the --list output as part of migrate is somewhat inconsistent. I'd rather add another command showmigrations that offers --list (what manage.py migrate --list is doing right now) as a default and --plan with the this output (dependencies are only shown for --verbose 2). We could add a --graph option too that outputs the content for a dotfile, as shown in the pull request.
comment:5 by , 11 years ago
| Cc: | added |
|---|
comment:6 by , 11 years ago
| Needs documentation: | set |
|---|
I added another PR (https://github.com/django/django/pull/3153) that adds a dedicated showmigrations command which then also takes care of --list from the migrate command.
comment:7 by , 11 years ago
| Owner: | changed from to |
|---|
comment:8 by , 11 years ago
| Needs documentation: | unset |
|---|
comment:9 by , 11 years ago
| Patch needs improvement: | set |
|---|
comment:10 by , 11 years ago
| Patch needs improvement: | unset |
|---|
comment:11 by , 11 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:12 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
There is a pull request at https://github.com/django/django/pull/3116