summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2016-06-24[1.10.x] Fixed #26795 -- Factored out get_changes() in test_autodetector.py.akki
Backport of ca77b509059831b055a3b735ff77e042f8e1c0eb from master
2016-06-20[1.10.x] Fixed #26643 -- Prevented unnecessary AlterModelManagers operations ↵Loïc Bistuer
caused by the manager inheritance refactor. This also makes migrations respect the base_manager_name and default_manager_name model options. Thanks Anthony King and Matthew Schinckel for the initial patches. Backport of 2eb7cb2fffcc382979d0731370de26b051d04659 from master
2016-06-16[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
2016-05-30[1.10.x] Fixed #25044 -- Fixed migrations for renaming ManyToManyField's ↵Vytis Banaitis
through model. Backport of f1e408ff40d2c1753f92515c70a44634b4d47467 from master
2016-05-26[1.10.x] Fixed #26647 -- Included the state of all applied migrations when ↵Simon Charette
migrating forward. Thanks Jasper Maes for the detailed report. Backport of 36d36818a30025034cad6f1ee59b2a960a6582ec from master
2016-05-19Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and ↵Alex Hill
tests
2016-05-17Fixed #20932, #25897 -- Streamlined manager inheritance.Loïc Bistuer
2016-05-13Refs #24201 -- Ignored order_with_respect_to private fields in migrations.Simon Charette
Thanks Tim for the review.
2016-05-11Fixed #26429 -- Added a timestamp to merge migration names.Raphael Gaschignard
This reduces the possibility of a naming conflict, especially after squashing migrations.
2016-05-09Fixed #25005 -- Made date and time fields with auto_now/auto_now_add use ↵Iacopo Spalletti
effective default. Thanks to Andriy Sokolovskiy for initial patch.
2016-05-08Sorted migration list order in test; added trailing comma.Jarek Glowacki
2016-05-08Included reverse deps in showmigrationsJarek Glowacki
2016-05-08Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph()Jarek Glowacki
2016-05-04Fixed #26555 -- Gave deconstructible objects a higher priority during ↵Markus Holtermann
serialization
2016-04-28Refs #26521 -- Adjusted CreateModel bases validation to account for mixins.Simon Charette
Thanks Collin for the report.
2016-04-27Refs #26521 -- Added the duplicated value to CreateModel validation messages.Simon Charette
Thanks Tim for the suggestion.
2016-04-27Fixed #26521 -- Validated CreateModel bases, fields and managers for duplicates.James Robert
2016-04-27Removed try/fail antipattern from migrations commands tests.Tim Graham
2016-04-22Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham
2016-04-19Fixed #26475 -- Added functools.partial() support to migrations autodetector.Matthew Schinckel
2016-04-12Fixed #26492 -- Fixed "maximum recursion depth exceeded" migrate error.Berker Peksag
A regression introduced in 0d3c616fbb2f49fa7ff6809e5a6777275352b35b; refs #26351.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-05Fixed #25850 -- Made migrate/makemigrations error on inconsistent history.Attila Tovt
2016-04-03Added missing primary keys to some OperationTestsMarkus Holtermann
Thanks Common Code for financing the work on this commit.
2016-04-02Made MakeMigrationsTests call proper parent methodAttila Tovt
2016-03-23Refs #25388 -- Used in-memory database in test_disable_migrations.Berker Peksag
2016-03-23Fixed #25388 -- Added an option to allow disabling of migrations during test ↵Berker Peksag
database creation
2016-03-10Fixed #26342 -- Prevented unpacking when repr a NodeNotFoundErrorJarek Glowacki
2016-02-25Fixed #26117 -- Consulted database routers in initial migration detection.Scott Sexton
Thanks Simon Charette for help.
2016-02-24Used addCleanup() to call recorder.flush() in migration loader tests.Tim Graham
2016-02-05Fixed #26176 -- Fixed E123 flake8 warnings.Tim Graham
2016-02-05Fixed #25833 -- Added support for non-atomic migrations.Pankrat
Added the Migration.atomic attribute which can be set to False for non-atomic migrations.
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-28Added a missing test method in tests/migrations/test_writer.py.Yoong Kang Lim
2016-01-25Fixed #26135 -- Adjusted the migration questioner's handling of disabled apps.Simon Charette
This was causing an issue when calling the `migrate` command in a test case with the `available_apps` attribute pointing to an application with migrations disabled using the `MIGRATION_MODULES` setting. Thanks to Tim Graham for the review. Refs #24919
2016-01-23Fixed #24109 -- Allowed RunSQL and RunPython operations to be elided.Simon Charette
Thanks to Markus Holtermann and Tim Graham for their review.
2015-12-25Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy
2015-12-19Fixed #25922 -- Fixed migrate --fake-initial detection of many-to-many tables.Tim Graham
2015-12-18Fixed #25063 -- Added path to makemigration's output of migration file.Niels Van Och
2015-12-15Fixed #25852 -- Made sure AlterModelManager forces a reload of its model state.Simon Charette
Thanks to Geoffrey Sechter and the Django NYC group for the report and Markus for the review.
2015-12-10Refs #25896 -- Fixed migration test failure on OracleShai Berger
The test creates and deletes a model in the same migration, and the model had an AutoField. On Oracle, AutoField's are set up using deferred SQL, which in this case was trying to modify a table after it had dbeen removed.
2015-12-09Fixed #25896 -- Fixed state bug in ↵Amos Onn
SeparateDatabaseAndState.database_backwards().
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-26Fixed #25807 -- Instructed the migration writer about lazy objects.Simon Charette
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation and Tim for the review.
2015-11-20Fixed #25551 -- Fixed migration operations ordering when adding fields and a ↵Ana Vojnovic
unique_together constraint.
2015-11-19Fixed #25764 -- Added support for serialization of enum.Enum in migrations.Andrei Fokau
Thanks Tim Graham for the review.
2015-11-14Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.Simon Charette
2015-10-24Fixed #25604 -- Added makemigrations --check option.Jon Dufresne
Command exits with non-zero status if changes without migrations exist.
2015-10-19Refs #18012 -- Accounted for reverse proxy relations in migrations.Simon Charette
Thanks to Markus for the suggestion and Tim for the review.