#35109 closed New feature (wontfix)

Enhance `showmigrations` to only write leafs nodes (most recent migrations) to stdout, if desired

Reported by: brian Owned by: brian
Component: Core (Management commands) Version: 3.2
Severity: Normal Keywords: management commands, migration, showmigrations
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

It would be nice to be able to have showmigrations only display the most recent migration for a given app. Currently, the functionality is to list all migrations, which can be a long list for more mature apps. I have found at times that I am really only looking for the most recent migration so that I can unapply it or find the number of the last migration so I can squash through that point.

Proposed enhancement: add an argument to showmigrations that will only show the leaf nodes for the given app(s) if provided.

Change History (2)

comment:2 by Mariusz Felisiak, 11 months ago

Has patch: unset
Resolution: wontfix
Status: assignedclosed

Thanks for this ticket, however, I don't think it's especially useful for most of programmers. Why only the last migrations for each should be crucial, and not the last two or three? If you want to check the last migrations in the last you can use: showmigrations --plan | tail.

You can raise the idea on the DevelopersMailingList to reach a wider audience and see what other think, if you don't agree.

Note: See TracTickets for help on using tickets.
Back to Top