1
0
mirror of https://github.com/django/django.git synced 2025-01-02 14:35:59 +00:00
django/tests/migrations
Simon Charette 761946f8e1 [5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field.
Field.db_default accepts either literal Python values or compilables
(as_sql) and wrap the former ones in Value internally.

While 1e38f11 added support for automatic resolving of output fields for
types such as str, int, float, and other unambigous ones it's cannot do
so for all types such as dict or even contrib.postgres and contrib.gis
primitives.

When a literal, non-compilable, value is provided it likely make the
most sense to bind its output field to the field its attached to avoid
forcing the user to provide an explicit `Value(output_field)`.

Thanks David Sanders for the report.

Backport of e67d7d70fa from main
2024-02-04 14:48:44 +01:00
..
deprecated_field_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
faulty_migrations
migrations_test_apps Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
related_models_app
test_add_many_to_many_field_initial Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_auto_now_add Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_fake_initial_case_insensitive
test_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_atomic_operation
test_migrations_backwards_deps_1
test_migrations_bad_pyc
test_migrations_clashing_prefix
test_migrations_conflict Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_conflict_long_name
test_migrations_custom_user
test_migrations_empty
test_migrations_fake_split_initial Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_first Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_initial_false Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_manual_porting
test_migrations_namespace_package
test_migrations_no_ancestor Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_changes Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_default Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_init
test_migrations_no_operations
test_migrations_non_atomic
test_migrations_noop Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_order Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_plan Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_private
test_migrations_run_before Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_complex Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_complex_multi_apps Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_erroneous Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_extra
test_migrations_squashed_no_replaces Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_ref_squashed Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_unmigdep Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
__init__.py
models.py
routers.py
test_autodetector.py [5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field. 2024-02-04 14:48:44 +01:00
test_base.py Fixed #470 -- Added support for database defaults on fields. 2023-05-12 19:11:40 +02:00
test_commands.py [5.0.x] Applied Black's 2024 stable style. 2024-01-26 12:55:56 +01:00
test_deprecated_fields.py
test_exceptions.py
test_executor.py [5.0.x] Applied Black's 2024 stable style. 2024-01-26 12:55:56 +01:00
test_graph.py Completed test coverage for django.db.migrations.graph. 2023-02-15 07:40:19 +01:00
test_loader.py Fixed RecorderTests.test_has_table_cached() on databases that perform multiple queries when introspecting tables. 2023-06-28 12:11:25 +02:00
test_multidb.py
test_operations.py [5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field. 2024-02-04 14:48:44 +01:00
test_optimizer.py Refs #34534 -- Reduced Add/RemoveConstraint and Add/RenameIndex operations when optimizing migrations. 2023-05-09 12:45:09 +02:00
test_questioner.py
test_state.py Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_writer.py Fixed #24561 -- Added support for callables on model fields' choices. 2023-09-14 10:15:33 -03:00