mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32291 -- Added fixtures compression support to dumpdata.
This commit is contained in:
@@ -364,6 +364,17 @@ standard output.
|
||||
When this option is set and ``--verbosity`` is greater than 0 (the default), a
|
||||
progress bar is shown in the terminal.
|
||||
|
||||
Fixtures compression
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
The output file can be compressed with one of the ``bz2``, ``gz``, ``lzma``, or
|
||||
``xz`` formats by ending the filename with the corresponding extension.
|
||||
For example, to output the data as a compressed JSON file::
|
||||
|
||||
django-admin dumpdata -o mydata.json.gz
|
||||
|
||||
``flush``
|
||||
---------
|
||||
|
||||
|
||||
@@ -338,6 +338,9 @@ Management Commands
|
||||
* :djadmin:`loaddata` now supports fixtures stored in XZ archives (``.xz``) and
|
||||
LZMA archives (``.lzma``).
|
||||
|
||||
* :djadmin:`dumpdata` now can compress data in the ``bz2``, ``gz``, ``lzma``,
|
||||
or ``xz`` formats.
|
||||
|
||||
* :djadmin:`makemigrations` can now be called without an active database
|
||||
connection. In that case, check for a consistent migration history is
|
||||
skipped.
|
||||
|
||||
Reference in New Issue
Block a user