summaryrefslogtreecommitdiff
path: root/django/db/migrations/executor.py
AgeCommit message (Collapse)Author
2015-04-01[1.8.x] Refs #24554 -- Prevented rendering of unused migrationsMarkus Holtermann
Thanks Claude Paroz and Tim Graham for the review Backport of 3e7d9d05ac5efff4e4732c3453c7a8ef502d0ed0 from master
2015-04-01[1.8.x] Fixed #24554 -- Sped up migrations by rendering initial apps when ↵Markus Holtermann
they are first needed Calling Migration.mutate_state() now also allows to do in_place mutations in case an intermediate state is thrown away later. Thanks Anssi Kääriäinen for the idea, Ryan Hall for parts of the patch, and Claude Paroz and Tim Graham for the review Backport of 57dc8dd3fa3c3adf133c522ecadb501d94bacd52 from master
2015-02-23[1.8.x] Fixed #24366 -- Optimized traversal of large migration dependency ↵Marten Kenbeek
graphs. Switched from an adjancency list and uncached, iterative depth-first search to a Node-based design with direct parent/child links and a cached, recursive depth-first search. With this change, calculating a migration plan for a large graph takes several seconds instead of several hours. Marked test `migrations.test_graph.GraphTests.test_dfs` as an expected failure due to reaching the maximum recursion depth. Backport of 78d43a5e1064b63db1c486516c4263ef1c4c975c from master
2015-02-13[1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrationsMarkus Holtermann
Previously Django only checked for the table name in CreateModel operations in initial migrations and faked the migration automatically. This led to various errors and unexpected behavior. The newly introduced --fake-initial flag to the migrate command must be passed to get the same behavior again. With this change Django will bail out in with a "duplicate relation / table" error instead. Thanks Carl Meyer and Tim Graham for the documentation update, report and review. Backport of f287bec5833d75750fa6368bc2802741b7924533 from master
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24123 -- Used all available migrations to generate the initial ↵Markus Holtermann
migration state Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
2015-01-02Fixed #23745 -- Reused states as much as possible in migrationsClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-02Passed around the state between migrationsClaude Paroz
Refs #23745.
2015-01-02Replaced migration state render() by apps cached propertyClaude Paroz
Refs #23745.
2014-11-19Fixed #23410 -- Avoided unnecessary rollbacks in related apps when migrating ↵Carl Meyer
backwards.
2014-09-24Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the ↵Tim Graham
wrong migrations." This reverts commit abcf28a07695a45cb5fb15b81bffc97bea5e0be3.
2014-09-23Called table_names instead of get_table_list in migrationsClaude Paroz
2014-09-15Fixed #23474 -- Prevented migrating backwards from unapplying the wrong ↵valtron
migrations.
2014-07-29Fix soft_applied in a way that doesn't break testsAndrew Godwin
2014-07-29Make detect_soft_applied exit correctly on non-create migrationsAndrew Godwin
2014-07-25Fixed #23093: soft application detection for swapped modelsAndrew Godwin
2014-06-23Fixed #22881 -- Better soft_applied migration detectionChris Beaven
2014-05-06Added a bunch of missing unicode_literalsClaude Paroz
Refs #22564.
2014-04-30Fixed #22485: Include all unmigrated apps in project state by default.Andrew Godwin
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-01-24Fix soft-apply detection of migrations with dependenciesAndrew Godwin
2013-12-28Used app_label instead of appname.Aymeric Augustin
The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-11-27Include deferred SQL in sqlmigrate outputAndrew Godwin
2013-10-30Auto-apply initial migrations if their tables exist already.Andrew Godwin
2013-10-23Fix migration planner to fully understand squashed migrations. And test.Andrew Godwin
2013-09-25Make sqlmigrate ignore the RunPython operationAndrew Godwin
2013-09-06Adding 'sqlmigrate' command and quote_parameter to support it.Andrew Godwin
2013-08-11Fix weird planning issues when already fully migrated.Andrew Godwin
2013-07-26Add --fake option to migrateAndrew Godwin
2013-07-22Make migrate command recognise prefixes and 'zero'.Andrew Godwin
2013-06-07Initial stab at a migrate command, it's probably quite a way off.Andrew Godwin
2013-05-30Remove debug printsAndrew Godwin
2013-05-30Add an Executor for end-to-end runningAndrew Godwin