1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29198 -- Added migrate --plan option.

This commit is contained in:
Calvin DeBoer
2018-05-19 11:38:02 -04:00
committed by Tim Graham
parent 1160a97596
commit 058d33f3ed
9 changed files with 197 additions and 2 deletions

View File

@@ -804,6 +804,13 @@ option does not, however, check for matching database schema beyond matching
table names and so is only safe to use if you are confident that your existing
schema matches what is recorded in your initial migration.
.. django-admin-option:: --plan
.. versionadded:: 2.2
Shows the migration operations that will be performed for the given ``migrate``
command.
.. django-admin-option:: --run-syncdb
Allows creating tables for apps without migrations. While this isn't

View File

@@ -175,7 +175,8 @@ Management Commands
Migrations
~~~~~~~~~~
* ...
* The new :option:`migrate --plan` option prints the list of migration
operations that will be performed.
Models
~~~~~~