#27844: Add a management command to run the optimizer on a single migration
-------------------------------------+-------------------------------------
     Reporter:  Raphael Gaschignard  |                    Owner:  nobody
         Type:  New feature          |                   Status:  assigned
    Component:  Migrations           |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by Raphael Gaschignard:

Old description:

> Because the migration optimizer still has a bit of trouble with reducing
> operations, you often want to edit squashed migrations and re-run it
> through the optimizer.
>
>  The attached patch contains an implementation of a management command,
> {{{optimizemigration}}}, that will help speed up this process.
>
> {{{optimizemigration app_name migration_name}}} reads a single migration,
> pass it through the optimizer, and then rewrite the result to disk.
> Unlike {{{squashmigrations}}}, this ignores things like the squashed-ness
> of the migration.

New description:

 Because the migration optimizer still has a bit of trouble with reducing
 operations, you often want to edit squashed migrations and re-run it
 through the optimizer.

 The attached patch contains an implementation of a management command,
 {{{optimizemigration}}}, that will help speed up this process.

 {{{optimizemigration app_name migration_name}}} reads a single migration,
 pass it through the optimizer, and then rewrite the result to disk. Unlike
 {{{squashmigrations}}}, this ignores things like the squashed-ness of the
 migration.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27844#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.89c7f91c6a3b9cf70e43b26ec8d3f299%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to