django/tests/migrations
Simon Charette 9f7772e098 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 095c1aaa89.

Thanks Tim for the additional tests and edits, and Mariusz for the review.
2017-12-22 15:19:05 -05:00
..
deprecated_field_migrations Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01: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 Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
related_models_app Added tests for get_related_models_recursive 2015-02-16 19:31:52 +01:00
test_add_many_to_many_field_initial Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_auto_now_add Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations Fixed #28152 -- Made migrations serialize sets as set literals rather than set(). 2017-05-18 09:33:40 -04:00
test_migrations_atomic_operation Fixed #28386 -- Made operations within non-atomic migrations honor the operation's atomic flag when migrating backwards. 2017-08-10 19:21:14 -04:00
test_migrations_backwards_deps_1 Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_conflict Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_custom_user Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01: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 #28152 -- Made migrations serialize sets as set literals rather than set(). 2017-05-18 09:33:40 -04:00
test_migrations_first Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_initial_false Fixed #28152 -- Made migrations serialize sets as set literals rather than set(). 2017-05-18 09:33:40 -04:00
test_migrations_no_ancestor Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_no_changes Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_no_default Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_non_atomic Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_order Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_run_before Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_complex Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_complex_multi_apps Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_erroneous Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_extra Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_ref_squashed Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_unmigdep Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
__init__.py Adding a dependency graph class and tests 2013-05-10 12:52:04 +01:00
models.py Refs #23919 -- Replaced super(ClassName, self) with super(). 2017-01-25 12:23:46 -05:00
routers.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
test_autodetector.py Fixed #28860 -- Removed unnecessary len() calls. 2017-12-04 10:35:23 -05:00
test_base.py Added multi_db=True to test cases that access the 'other' db connection. 2017-02-10 08:19:32 -05:00
test_commands.py Fixed #28776 -- Fixed a/an/and typos in docs and comments. 2017-11-06 22:41:03 -05:00
test_deprecated_fields.py Removed IPAddressField per deprecation timeline; refs #20439. 2015-01-19 11:12:57 -05:00
test_exceptions.py Fixed #26342 -- Prevented unpacking when repr a NodeNotFoundError 2016-03-10 17:27:35 +11:00
test_executor.py Fixed #28386 -- Made operations within non-atomic migrations honor the operation's atomic flag when migrating backwards. 2017-08-10 19:21:14 -04:00
test_graph.py Added tests for various __repr__() methods. 2017-02-04 11:29:39 -05:00
test_loader.py Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. 2017-06-01 19:08:59 -04:00
test_multidb.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
test_operations.py Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model referenced by a ManyToManyField. 2017-12-22 15:19:05 -05:00
test_optimizer.py Simplified tests with assertDoesNotOptimize(). 2017-01-25 13:52:44 -05:00
test_questioner.py Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_state.py Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. 2017-06-01 19:08:59 -04:00
test_writer.py Fixed #28870 -- Added support for functools.partialmethod serialization in migrations. 2017-12-06 14:49:37 -05:00