django1/django/db/migrations/operations
Simon Charette ed7898e1b5 Fixed #28862 -- Disabled optimization of AlterFooTogether and RemoveField.
AlterFooTogether operations cannot be swapped with RemoveField operations on
the same model as they could be removing the the same field as well.

Since AlterFooTogether operations don't track what their previous value was,
it's impossible to determine whether or not the optimization is safe so the
only way to proceed is to disable the optimization.

Thanks Ramiro Morales for the in-depth analysis of the issue.

Refs #24828
2018-07-19 17:06:01 -04:00
..
__init__.py Fixed #11964 -- Added support for database check constraints. 2018-07-10 15:32:33 -04:00
base.py Removed in_between from Operation.reduce()'s signature. 2018-07-11 10:49:50 -04:00
fields.py Removed in_between from Operation.reduce()'s signature. 2018-07-11 10:49:50 -04:00
models.py Fixed #28862 -- Disabled optimization of AlterFooTogether and RemoveField. 2018-07-19 17:06:01 -04:00
special.py Refs #27914 -- Used __qualname__ in model operations' deconstruct(). 2017-06-14 10:10:22 -04:00
utils.py Introduced ModelTuple to remove migrations boilerplate. 2018-07-11 10:49:50 -04:00