• Simon Charette's avatar
    Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model… · 9f7772e0
    Simon Charette yazdı
    Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model referenced by a ManyToManyField.
    
    Introspected database constraints instead of relying on _meta.related_objects
    to determine whether or not a table or a column is referenced on rename
    operations.
    
    This has the side effect of ignoring both db_constraint=False and virtual
    fields such as GenericRelation which aren't backend by database level
    constraints and thus shouldn't prevent the rename operations from being
    performed in a transaction.
    
    Regression in 095c1aaa.
    
    Thanks Tim for the additional tests and edits, and Mariusz for the review.
    9f7772e0
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_add_many_to_many_field_initial Loading commit data...
test_auto_now_add Loading commit data...
test_migrations Loading commit data...
test_migrations_atomic_operation 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_non_atomic 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_squashed_extra Loading commit data...
test_migrations_squashed_ref_squashed Loading commit data...
test_migrations_unmigdep Loading commit data...
__init__.py Loading commit data...
models.py Loading commit data...
routers.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_exceptions.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_questioner.py Loading commit data...
test_state.py Loading commit data...
test_writer.py Loading commit data...