summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2014-08-16 17:21:14 +0200
committerBaptiste Mispelon <bmispelon@gmail.com>2014-08-18 18:55:12 +0200
commit5853c87a458f62ebd62d7809168355610de2570c (patch)
treed9cb9cf43b1bb3da8e70667133f4da7b601a47f7 /docs
parentb6aa60f4252311ef8ef24b4ffd99984197be7ee6 (diff)
Fixed #23303 -- Added BEGIN and COMMIT statements to the output of sqlmigrate.
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial01.txt2
-rw-r--r--docs/ref/contrib/gis/tutorial.txt2
-rw-r--r--docs/ref/django-admin.txt2
3 files changed, 6 insertions, 0 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index b99adbb7f6..ca6042f618 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -480,6 +480,7 @@ readability):
.. code-block:: sql
+ BEGIN;
CREATE TABLE polls_question (
"id" serial NOT NULL PRIMARY KEY,
"question_text" varchar(200) NOT NULL,
@@ -500,6 +501,7 @@ readability):
FOREIGN KEY ("question_id")
REFERENCES "polls_question" ("id")
DEFERRABLE INITIALLY DEFERRED;
+ COMMIT;
Note the following:
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index a53cc100d9..a8c68f3b8e 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -285,6 +285,7 @@ This command should produce the following output:
.. code-block:: sql
+ BEGIN;
CREATE TABLE "world_worldborder" (
"id" serial NOT NULL PRIMARY KEY,
"name" varchar(50) NOT NULL,
@@ -302,6 +303,7 @@ This command should produce the following output:
)
;
CREATE INDEX "world_worldborder_mpoly_id" ON "world_worldborder" USING GIST ( "mpoly" );
+ COMMIT;
.. note::
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 85d0ab06fe..5188c10dde 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1136,6 +1136,8 @@ Prints the SQL for the named migration. This requires an active database
connection, which it will use to resolve constraint names; this means you must
generate the SQL against a copy of the database you wish to later apply it on.
+Note that ``sqlmigrate`` doesn't colorize its output.
+
The :djadminopt:`--database` option can be used to specify the database for
which to generate the SQL.