summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2015-03-29 16:59:35 +0200
committerMarkus Holtermann <info@markusholtermann.eu>2015-03-30 16:31:20 +0200
commitc5cc332bf2a0b3ebfa3ad5d26c5b308de5e505be (patch)
tree58e095966c96de38f50a96ab94386db80d9fa78a /docs/ref
parentdc27f3ee0c3eb9bb17d6cb764788eeaf73a371d7 (diff)
Fixed #24550 -- Added migration operation description to sqlmigrate output
Thanks Tim Graham for the review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/tutorial.txt3
-rw-r--r--docs/ref/django-admin.txt6
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index c93e55ec69..ea78274781 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -286,6 +286,9 @@ This command should produce the following output:
.. code-block:: sql
BEGIN;
+ --
+ -- Create model WorldBorder
+ --
CREATE TABLE "world_worldborder" (
"id" serial NOT NULL PRIMARY KEY,
"name" varchar(50) NOT NULL,
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index e9dbe4b746..3515c615e7 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -984,6 +984,12 @@ By default, the SQL created is for running the migration in the forwards
direction. Pass ``--backwards`` to generate the SQL for
unapplying the migration instead.
+.. versionchanged:: 1.9
+
+ To increase the readability of the overall SQL output the SQL code
+ generated for each migration operation is preceded by the operation's
+ description.
+
sqlsequencereset <app_label app_label ...>
------------------------------------------