mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #26760 -- Added --prune option to migrate command.
This commit is contained in:
parent
eeff1787b0
commit
2d8232fa71
7 changed files with 177 additions and 0 deletions
|
@ -908,6 +908,14 @@ content types.
|
|||
Makes ``migrate`` exit with a non-zero status when unapplied migrations are
|
||||
detected.
|
||||
|
||||
.. django-admin-option:: --prune
|
||||
|
||||
.. versionadded:: 4.1
|
||||
|
||||
Deletes nonexistent migrations from the ``django_migrations`` table. This is
|
||||
useful when migration files replaced by a squashed migration have been removed.
|
||||
See :ref:`migration-squashing` for more details.
|
||||
|
||||
``runserver``
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue