id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 25413 Add an option to squashmigrations to remove RunPython and RunSQL Marc Tamlyn nobody "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." New feature closed Migrations dev Normal duplicate Accepted 0 0 0 0 0 0