Sky Christensen
unread,Nov 29, 2019, 5:59:37 AM11/29/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
I'd like to be able to easily see a list of only unapplied migrations.
I often find myself switching to a new branch and wanting to quickly
find out whether it contains any migrations that are yet to be applied
to my development database, and what they are.
At the moment I use a plain `./manage.py showmigrations`, but when there
are lots of migrations, scanning the resulting list to find out which --
if any -- migrations are not yet applied is tedious and error-prone.
I'd really like to be able to do something like `./manage.py
showmigrations --unapplied` or `./manage.py showmigrations -u`, and have
that produce a list of only the unapplied migrations.
I'll be happy to open a ticket and submit a patch to do this if others
think the idea has merit.