• Markus Holtermann's avatar
    Fixed #24743, #24745 -- Optimized migration plan handling · 5aa55038
    Markus Holtermann yazdı
    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.
    5aa55038
Adı
Son kayıt (commit)
Son güncelleme
..
deprecated_field_migrations Loading commit data...
faulty_migrations Loading commit data...
migrations_test_apps Loading commit data...
related_models_app Loading commit data...
test_migrations Loading commit data...
test_migrations_backwards_deps_1 Loading commit data...
test_migrations_conflict Loading commit data...
test_migrations_custom_user Loading commit data...
test_migrations_empty Loading commit data...
test_migrations_fake_split_initial Loading commit data...
test_migrations_first Loading commit data...
test_migrations_initial_false Loading commit data...
test_migrations_no_ancestor Loading commit data...
test_migrations_no_changes Loading commit data...
test_migrations_no_default Loading commit data...
test_migrations_order Loading commit data...
test_migrations_run_before Loading commit data...
test_migrations_squashed Loading commit data...
test_migrations_squashed_complex Loading commit data...
test_migrations_squashed_complex_multi_apps Loading commit data...
test_migrations_squashed_erroneous Loading commit data...
test_migrations_unmigdep Loading commit data...
__init__.py Loading commit data...
models.py Loading commit data...
test_autodetector.py Loading commit data...
test_base.py Loading commit data...
test_commands.py Loading commit data...
test_deprecated_fields.py Loading commit data...
test_executor.py Loading commit data...
test_graph.py Loading commit data...
test_loader.py Loading commit data...
test_multidb.py Loading commit data...
test_operations.py Loading commit data...
test_optimizer.py Loading commit data...
test_state.py Loading commit data...
test_writer.py Loading commit data...