[Django] #23359: Add ability to show the migration plan

24 views
Skip to first unread message

Django

unread,
Aug 24, 2014, 7:18:19 PM8/24/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+--------------------
Reporter: Markush2010 | Owner: nobody
Type: New feature | Status: new
Component: Migrations | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/23359>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 24, 2014, 7:44:44 PM8/24/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Markush2010):

* status: new => assigned
* owner: nobody => Markush2010
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:1>

Django

unread,
Aug 24, 2014, 7:48:38 PM8/24/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Markush2010):

* has_patch: 0 => 1


Comment:

There is a pull request at https://github.com/django/django/pull/3116

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:2>

Django

unread,
Aug 25, 2014, 6:25:26 PM8/25/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by timgraham):

* easy: 1 => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:3>

Django

unread,
Aug 27, 2014, 1:26:37 PM8/27/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------

Comment (by Markush2010):

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
[https://github.com/django/django/pull/3116#issuecomment-53444101 this
output] (dependencies are only shown for `--verbose 2`). We could add a
`--graph` option too that outputs the content for a dotfile, as
[https://github.com/django/django/pull/3116#issuecomment-53565075 shown in
the pull request].

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:4>

Django

unread,
Aug 27, 2014, 1:26:59 PM8/27/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Markush2010):

* cc: Markush2010 (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:5>

Django

unread,
Sep 3, 2014, 4:59:37 AM9/3/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------
Reporter: Markush2010 | Owner: Markush2010
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Changes (by Markush2010):

* needs_docs: 0 => 1


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:6>

Django

unread,
Nov 20, 2014, 11:58:17 AM11/20/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+------------------------------------
Reporter: Markush2010 | Owner: MarkusH

Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by MarkusH):

* owner: Markush2010 => MarkusH


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:7>

Django

unread,
Dec 21, 2014, 10:08:45 AM12/21/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by MarkusH):

* needs_docs: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:8>

Django

unread,
Dec 24, 2014, 1:05:34 PM12/24/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:9>

Django

unread,
Dec 28, 2014, 9:11:05 AM12/28/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by MarkusH):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:10>

Django

unread,
Dec 31, 2014, 1:12:10 PM12/31/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------------

Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:11>

Django

unread,
Dec 31, 2014, 2:19:25 PM12/31/14
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: closed
Component: Migrations | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"a1487deebff7bf27a4946a9f5ddd68154fa4834d"]:
{{{
#!CommitTicketReference repository=""
revision="a1487deebff7bf27a4946a9f5ddd68154fa4834d"
Fixed #23359 -- Added showmigrations command to list migrations and plan.

Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn
for their input, ideas, and review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:12>

Django

unread,
Jan 5, 2015, 2:54:12 PM1/5/15
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: closed
Component: Migrations | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"e08318b4ef25cfe7d1cfbc5ae7d134ee477506ba"]:
{{{
#!CommitTicketReference repository=""
revision="e08318b4ef25cfe7d1cfbc5ae7d134ee477506ba"
Refs #23359 -- Removed double newline from output of migrate --list

Thanks Berker Peksag for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:13>

Django

unread,
Sep 23, 2015, 7:54:47 PM9/23/15
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-----------------------------+---------------------------------------------
Reporter: Markush2010 | Owner: MarkusH
Type: New feature | Status: closed
Component: Migrations | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"b6e6fcf326ff3b008ccd7e935c391432d95bc5e2" b6e6fcf3]:
{{{
#!CommitTicketReference repository=""
revision="b6e6fcf326ff3b008ccd7e935c391432d95bc5e2"
Refs #23359 -- Removed the migrate --list option per deprecation timeline.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:14>

Django

unread,
Jul 13, 2021, 12:29:58 AM7/13/21
to django-...@googlegroups.com
#23359: Add ability to show the migration plan
-------------------------------------+-------------------------------------
Reporter: Markus Holtermann | Owner: Markus
| Holtermann

Type: New feature | Status: closed
Component: Migrations | Version: dev

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"bbf93efa1939682c2af9e3fac03e8c4173523a0d" bbf93ef]:
{{{
#!CommitTicketReference repository=""
revision="bbf93efa1939682c2af9e3fac03e8c4173523a0d"
Refs #23359 -- Corrected showmigrations help text for the --database
option.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23359#comment:15>

Reply all
Reply to author
Forward
0 new messages