summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
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.
2015-09-23Refs #23359 -- Removed the migrate --list option per deprecation timeline.Tim Graham
2015-09-19Fixed #25390 -- Allowed specifying a start migration in squashmigrationsMarkus Holtermann
Thanks Tim Graham for the review.
2015-09-19Fixed #24743, #24745 -- Optimized migration plan handlingMarkus Holtermann
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.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-12Refs #24919 -- Raised more helpful error message for disabled migrationsMarkus Holtermann
2015-09-12Fixed #24919 -- Allowed disabling of migrations on a per app basisMarkus Holtermann
2015-09-07Refs #24215 -- Improved error message for unhandled lazy model operations.Alex Hill
2015-08-31Fixed #25259 -- Added comments to header of generated migration filesTyson Clugg
2015-08-28Refs #24590 -- Ensured isolation between autodetector testsMarkus Holtermann
Fixed a regression introduced in e1427cc609fa6ab247501b101cfb3c0092aba55b when running tests in reverse order.
2015-08-27Fixed #25280 -- Properly checked regex objects for equality to prevent ↵Markus Holtermann
infinite migrations Thanks Sayid Munawar and Tim Graham for the report, investigation and review.
2015-08-26Fixed #25308 -- Made MigrationQuestioner respect MIGRATION_MODULES setting.Jeremy Satterfield
2015-08-20Fixed typo in tests/migrations/test_autodetector.py.Tim Graham
2015-08-18Fixed #24755 -- Hid operations from dependency apps when merging migrationsMarkus Holtermann
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-08-14Fixed #25239 -- Corrected makemigrations numbering if a migration has a ↵Caio Ariede
number-only filename.
2015-08-08Used skipUnlessDBFeature where appropriate.Simon Charette
2015-08-07Fixed #25231 -- Added recording of squashed migrations in the migrate command.mlavin
Ensured squashed migrations are recorded as applied when the migrate command is run and all of the original migrations have been previously applied.
2015-07-29Fixed #25185 -- Added support for functools.partial serialization in migrationsPiper Merriam
2015-07-28Fixed #25186 -- Improved migration's serialization of builtins on Python 2.Piper Merriam
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-13Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov
The new attribute is checked when the `migrate --fake-initial` option is used. initial will be set to True for all initial migrations (this is particularly useful when initial migrations are split) as well as for squashed migrations.
2015-07-02Fixed #25040 -- Fixed migrations state crash with GenericForeignKeyKai Richard Koenig
2015-06-29Refs #20203 -- Allowed adding custom default manager to the model stateAndriy Sokolovskiy
If the only manager on the model is the default manager defined by Django (`objects = models.Manager()`), this manager will not be added to the model state. If it is custom, it needs to be passed to the model state.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-23Used mock in MigrationQuestioner testsMarkus Holtermann
Thanks Andriy Sokolovskiy and Simon Charette for the review.
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-16Fixed #24828 -- Allowed migration optimization across AlterFooTogetherMarkus Holtermann
The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review.
2015-06-14Optimized duplicate AlterModelTable/AlterFooTogether/AlterOWRTMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-14Took AlterOrderWithRespectTo into account when optimizing migrationsMarkus Holtermann
Thanks Andrew Godwin for the review.
2015-06-03Cleaned up docstring style, per Tim Graham review.Carl Meyer
2015-06-03Refs #24628 -- Added a second test and a docstring comment to avoid regression.Carl Meyer
2015-06-02Fixed #24628 -- Fixed applied status for squashed migrations.Carl Meyer
2015-06-02Improved isolation of applied-migrations table in migration tests.Carl Meyer
2015-06-02Fixed #24895 -- Fixed loading a pair of squashed migrations with a dependency.Carl Meyer