mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #24550 -- Added migration operation description to sqlmigrate output
Thanks Tim Graham for the review.
This commit is contained in:
parent
dc27f3ee0c
commit
c5cc332bf2
6 changed files with 83 additions and 21 deletions
|
|
@ -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 ...>
|
||||
------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue