Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#22675 closed New feature (fixed)

Allow makemigrations --dry-run to output the migrations to stdout

Reported by: anonymous Owned by: mardini
Component: Migrations Version: 1.7-beta-2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When makemigrations is being dry run, the messages are useful to note that Django detected a change, but what if you want to make sure exactly what the migration will be?

It would be nice if setting the verbosity to 3 would print the full proposed migration to standard output.

Change History (6)

comment:1 by shige.abe@…, 10 years ago

comment:2 by Tim Graham, 10 years ago

Summary: A more verbose --dry-run option for makemigrations?Allow makemigrations --dry-run to output the migrations to stdout
Triage Stage: UnreviewedAccepted

Could be useful.

comment:3 by mardini, 10 years ago

Owner: changed from nobody to mardini
Status: newassigned

comment:5 by Moayad Mardini <moayad.m@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 2e613ea5c52d4d12e071987178af18c0371d6e2f:

Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.

makemigrations --dry-run will output the complete migrations file
that would be written if it's used along with --verbosity 3.

comment:6 by Tim Graham <timograham@…>, 10 years ago

In c0a56001e0e5c35615842f4ed223b7baeb234730:

[1.7.x] Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.

makemigrations --dry-run will output the complete migrations file
that would be written if it's used along with --verbosity 3.

Backport of 2e613ea5c5 from master

Note: See TracTickets for help on using tickets.
Back to Top