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:
@@ -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,
|
||||
|
||||
@@ -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 ...>
|
||||
------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user