#25413: Add an option to squashmigrations to remove RunPython and RunSQL
---------------------------------------+------------------------
               Reporter:  mjtamlyn     |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Component:  Migrations   |        Version:  master
               Severity:  Normal       |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+------------------------
 Migrations (correctly) do not optimise through RunPython and RunSQL
 commands. However many of these commands are data mutating, rather than
 creating initial data, and once they have been applied to all deploys (so
 the original migrations files can be removed) they are no longer relevant.

 It would be nice to have `./manage.py squashmigrations --no-data` or
 similar which simply removes these operations and optimises without them.

--
Ticket URL: <https://code.djangoproject.com/ticket/25413>
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/051.e568f4cb582e8a208f345eb80d7814ff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to