mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25304 -- Allowed management commands to check if migrations are applied.
This commit is contained in:
committed by
Tim Graham
parent
004ba0f99e
commit
50931dfa53
@@ -231,6 +231,14 @@ All attributes can be set in your derived class and can be used in
|
||||
``True``, the output will automatically be wrapped with ``BEGIN;`` and
|
||||
``COMMIT;``. Default value is ``False``.
|
||||
|
||||
.. attribute:: BaseCommand.requires_migrations_checks
|
||||
|
||||
.. versionadded:: 1.10
|
||||
|
||||
A boolean; if ``True``, the command prints a warning if the set of
|
||||
migrations on disk don't match the migrations in the database. A warning
|
||||
doesn't prevent the command from executing. Default value is ``False``.
|
||||
|
||||
.. attribute:: BaseCommand.requires_system_checks
|
||||
|
||||
A boolean; if ``True``, the entire Django project will be checked for
|
||||
|
||||
Reference in New Issue
Block a user