django1/django/db/migrations
Markus Holtermann 5aa55038ca Fixed #24743, #24745 -- Optimized migration plan handling
The change partly goes back to the old behavior for forwards migrations
which should reduce the amount of memory consumption (#24745). However,
by the way the current state computation is done (there is no
`state_backwards` on a migration class) this change cannot be applied to
backwards migrations. Hence rolling back migrations still requires the
precomputation and storage of the intermediate migration states.

This improvement also implies that Django does not handle mixed
migration plans anymore. Mixed plans consist of a list of migrations
where some are being applied and others are being unapplied.

Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well
as everybody involved on the ticket that kept me looking into the issue.
2015-09-19 14:54:53 +10:00
..
operations Sorted imports in __init__.py files. 2015-06-27 11:53:33 -04:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
exceptions.py Fixed #24743, #24745 -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
executor.py Fixed #24743, #24745 -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
graph.py Removed django.utils.functional.total_ordering() 2015-06-15 13:15:24 -04:00
loader.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
migration.py Fixed #24375 -- Added Migration.initial attribute 2015-07-13 15:57:40 -04:00
optimizer.py Sorted reduce methods in migration optimizer 2015-06-16 00:46:04 +02:00
questioner.py Fixed #25308 -- Made MigrationQuestioner respect MIGRATION_MODULES setting. 2015-08-26 09:04:00 -04:00
recorder.py Fixed #24742 -- Made runserver.check_migrations ignore read-only databases 2015-05-13 18:30:36 +02:00
state.py Refs #24215 -- Fixed Python 3.5 compatiblity for unhandled lazy ops error. 2015-09-17 10:06:52 -04:00
topological_sort.py Fixed #23844 -- Used topological sort for migration operation dependency resolution. 2014-11-20 12:49:49 -05:00
utils.py Fixed #25280 -- Properly checked regex objects for equality to prevent infinite migrations 2015-08-27 09:52:53 +10:00
writer.py Refs #24919 -- Raised more helpful error message for disabled migrations 2015-09-12 10:38:15 +10:00