mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #25388 -- Added an option to allow disabling of migrations during test database creation
This commit is contained in:
parent
1243fdf5cb
commit
157d7f1f1d
6 changed files with 38 additions and 5 deletions
|
@ -710,6 +710,17 @@ The creation-order dependencies of the database. See the documentation
|
|||
on :ref:`controlling the creation order of test databases
|
||||
<topics-testing-creation-dependencies>` for details.
|
||||
|
||||
.. setting:: TEST_MIGRATE
|
||||
|
||||
``MIGRATE``
|
||||
^^^^^^^^^^^
|
||||
|
||||
.. versionadded:: 1.10
|
||||
|
||||
Default: ``True``
|
||||
|
||||
If set to ``False``, Django won't use migrations to create the test database.
|
||||
|
||||
.. setting:: TEST_MIRROR
|
||||
|
||||
``MIRROR``
|
||||
|
|
|
@ -394,6 +394,9 @@ Tests
|
|||
and run selectively with the new :option:`test --tag` and :option:`test
|
||||
--exclude-tag` options.
|
||||
|
||||
* Added the :setting:`DATABASES['TEST']['MIGRATE'] <TEST_MIGRATE>` option to
|
||||
allow disabling of migrations during test database creation.
|
||||
|
||||
URLs
|
||||
~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue