summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDakota Hawkins <dakotahawkins@users.noreply.github.com>2018-12-19 06:41:31 -0500
committerCarlton Gibson <carlton.gibson@noumenal.es>2018-12-19 12:41:31 +0100
commit8d3147e130c4e5638fceb1e6125c040362ce12e8 (patch)
tree3e17b6ed50be3466ced3ec73a2745f37f994cebb /docs
parentb514dc14f4e1c364341f5931b354e83ef15ee12d (diff)
Fixed #30031 -- Added --no-header option to makemigrations/squashmigrations.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt12
-rw-r--r--docs/releases/2.2.txt4
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 19f1d046fe..e8371897e2 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -776,6 +776,12 @@ Enables fixing of migration conflicts.
Allows naming the generated migration(s) instead of using a generated name. The
name must be a valid Python :ref:`identifier <python:identifiers>`.
+.. django-admin-option:: --no-header
+
+.. versionadded:: 2.2
+
+Generate migration files without Django version and timestamp header.
+
.. django-admin-option:: --check
Makes ``makemigrations`` exit with a non-zero status when model changes without
@@ -1156,6 +1162,12 @@ Suppresses all user prompts.
Sets the name of the squashed migration. When omitted, the name is based on the
first and last migration, with ``_squashed_`` in between.
+.. django-admin-option:: --no-header
+
+.. versionadded:: 2.2
+
+Generate squashed migration file without Django version and timestamp header.
+
``startapp``
------------
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt
index e6162a7fe4..21786d6d63 100644
--- a/docs/releases/2.2.txt
+++ b/docs/releases/2.2.txt
@@ -194,6 +194,10 @@ Management Commands
* On Oracle, :djadmin:`dbshell` is wrapped with ``rlwrap``, if available.
``rlwrap`` provides a command history and editing of keyboard input.
+* The new :option:`makemigrations --no-header` option avoids writing header
+ comments in generated migration file(s). This option is also available for
+ :djadmin:`squashmigrations`.
+
Migrations
~~~~~~~~~~