Opened 6 years ago

Last modified 6 years ago

#30186 closed New feature

Show applied datetime in showmigrations — at Initial Version

Reported by: Timothy Schilling Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords: migrations showmigrations
Cc: 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

My idea is to add the applied datetime value to the showmigrations command.

I've run into the case where I'm working on a branch that involves a number of migrations across various apps, but then have to switch to a different branch which has different migrations. It can be troublesome to determine which migrations are new and need to be rolled back. I've recently started looking at the django_migrations table sorted on the applied column to determine which I've run recently. This would make switching between branches involving conflicting migrations easier.

There was some brief discussion here.

I've initially implemented this so that it would only apply to the --list option with a --verbosity of 2 and above. Here's what I have so far. I wasn't sure how to handle backporting.

Change History (0)

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