1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #24550 -- Added migration operation description to sqlmigrate output

Thanks Tim Graham for the review.
This commit is contained in:
Markus Holtermann
2015-03-29 16:59:35 +02:00
parent dc27f3ee0c
commit c5cc332bf2
6 changed files with 83 additions and 21 deletions

View File

@@ -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,

View File

@@ -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 ...>
------------------------------------------