mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #23102 -- Documented that sql* commands now respect allow_migrate().
This commit is contained in:
parent
80708ac772
commit
0af593dbe5
2 changed files with 12 additions and 0 deletions
|
@ -1050,6 +1050,13 @@ specify initial data.
|
|||
The :djadminopt:`--database` option can be used to specify the database for
|
||||
which to print the SQL.
|
||||
|
||||
.. versionchanged:: 1.7
|
||||
|
||||
The ``sql*`` management commands now respect the ``allow_migrate()`` method
|
||||
of :setting:`DATABASE_ROUTERS`. If you have models synced to non-default
|
||||
databases, use the :djadminopt:`--database` flag to get SQL for those
|
||||
models (previously they would always be included in the output).
|
||||
|
||||
sqlclear <app_label app_label ...>
|
||||
----------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue