﻿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
27844	Add a management command to optimize a migration	Raphael Gaschignard	David Wobrock	"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 feature	closed	Migrations	dev	Normal	fixed		David Wobrock	Ready for checkin	1	0	0	0	0	0
