mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #24560 -- Added a --dry-run mode to the createcachetable command.
This commit is contained in:
@@ -189,6 +189,13 @@ The :djadminopt:`--database` option can be used to specify the database
|
||||
onto which the cache table will be installed, but since this information is
|
||||
pulled from your settings by default, it's typically not needed.
|
||||
|
||||
The :djadminopt:`--dry-run` option will print the SQL that would be run without
|
||||
actually running it, so you can customize it or use the migrations framework.
|
||||
|
||||
.. versionchanged:: 1.9
|
||||
|
||||
The ``--dry-run`` option was added.
|
||||
|
||||
dbshell
|
||||
-------
|
||||
|
||||
|
||||
@@ -166,6 +166,9 @@ Management Commands
|
||||
|
||||
* The :djadmin:`dumpdata` command output is now deterministically ordered.
|
||||
|
||||
* The :djadmin:`createcachetable` command now has a ``--dry-run`` flag to
|
||||
print out the SQL rather than execute it.
|
||||
|
||||
Models
|
||||
^^^^^^
|
||||
|
||||
|
||||
@@ -206,6 +206,9 @@ If you are using multiple databases, :djadmin:`createcachetable` observes the
|
||||
Like :djadmin:`migrate`, :djadmin:`createcachetable` won't touch an existing
|
||||
table. It will only create missing tables.
|
||||
|
||||
To print the SQL that would be run, rather than run it, use the
|
||||
:djadminopt:`--dry-run` option.
|
||||
|
||||
Multiple databases
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user