mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.7.x] Fixed #23303 -- Added BEGIN and COMMIT statements to the output of sqlmigrate.
Backport of 5853c87a45 from master.
Conflicts:
django/core/management/commands/sqlmigrate.py
tests/user_commands/tests.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user