mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #31055 -- Added --database option to the check management command.
This avoids enabling the ``database`` checks unless they are explicitly requested and allows to disable on a per-alias basis which is required when only creating a subset of the test databases. This also removes unnecessary BaseCommand._run_checks() hook.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9cc743d0c8
commit
0b83c8cc4d
@@ -229,7 +229,10 @@ Logging
|
||||
Management Commands
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* The new :option:`check --database` option allows specifying database aliases
|
||||
for running the ``database`` system checks. Previously these checks were
|
||||
enabled for all configured :setting:`DATABASES` by passing the ``database``
|
||||
tag to the command.
|
||||
|
||||
Migrations
|
||||
~~~~~~~~~~
|
||||
@@ -474,6 +477,12 @@ Miscellaneous
|
||||
*What's New* :ref:`Security section <whats-new-security-3.1>` above for more
|
||||
details.
|
||||
|
||||
* :djadmin:`check` management command now runs the ``database`` system checks
|
||||
only for database aliases specified using :option:`check --database` option.
|
||||
|
||||
* :djadmin:`migrate` management command now runs the ``database`` system checks
|
||||
only for a database to migrate.
|
||||
|
||||
.. _deprecated-features-3.1:
|
||||
|
||||
Features deprecated in 3.1
|
||||
|
||||
Reference in New Issue
Block a user