django/tests/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
..
deprecated_field_migrations Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
faulty_migrations Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:30:46 -05:00
migrations_test_apps Fixed #24755 -- Hid operations from dependency apps when merging migrations 2015-08-18 18:33:14 +10:00
related_models_app Added tests for get_related_models_recursive 2015-02-16 19:31:52 +01:00
test_migrations Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_backwards_deps_1 Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the wrong migrations." 2014-09-24 15:49:30 -04:00
test_migrations_conflict Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_custom_user Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_empty Fixed #23359 -- Added showmigrations command to list migrations and plan. 2014-12-31 14:14:28 -05:00
test_migrations_fake_split_initial Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_first Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_initial_false Fixed #24375 -- Added Migration.initial attribute 2015-07-13 15:57:40 -04:00
test_migrations_no_ancestor Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_no_changes Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_no_default Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_migrations_order Fixed #25239 -- Corrected makemigrations numbering if a migration has a number-only filename. 2015-08-14 07:28:37 -04:00
test_migrations_run_before Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_squashed Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
test_migrations_squashed_complex Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_complex_multi_apps Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_erroneous Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_unmigdep Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
__init__.py Adding a dependency graph class and tests 2013-05-10 12:52:04 +01:00
models.py Refs #23822 -- Made MigrationOptimizer aware of model managers 2015-01-07 17:33:04 -05:00
test_autodetector.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_base.py Improved isolation of applied-migrations table in migration tests. 2015-06-02 16:14:02 -06:00
test_commands.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_deprecated_fields.py Removed IPAddressField per deprecation timeline; refs #20439. 2015-01-19 11:12:57 -05:00
test_executor.py Fixed #24743, #24745 -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
test_graph.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_loader.py Fixed #24919 -- Allowed disabling of migrations on a per app basis 2015-09-12 10:38:15 +10:00
test_multidb.py Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:34:09 +07:00
test_operations.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_optimizer.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_state.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_writer.py Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00