summaryrefslogtreecommitdiff
path: root/tests/migrations/test_executor.py
AgeCommit message (Collapse)Author
2015-02-16[1.8.x] Refs #24264 -- Added failing test case for updating a FK when ↵Markus Holtermann
changing a PK When the primary key column is altered, foreign keys of referencing models must be aware of a possible data type change as well and thus need to be re-rendered. Thanks Tim Graham for the report. Backport of cc22b009e05456e3d9cf3c152fe47fa27772be5e 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-19Added another migration-executor test to avoid regressions.Carl Meyer
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-19Fixed some flake8 errors.Tim Graham
Originally I added migrations to flake8 exclude because of long lines in migration files, but there are other directories named migrations we do want to check. We are not warning on line lengths yet anyway.
2014-09-15Fixed #23474 -- Prevented migrating backwards from unapplying the wrong ↵valtron
migrations.
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-07-25Fixed #23093: soft application detection for swapped modelsAndrew Godwin
2014-06-23Fixed #22881 -- Better soft_applied migration detectionChris Beaven
2014-06-16Removed usaged of contrib.sessions as a placeholder in migration tests.Tim Graham
Without this, we're unable to add actual migrations for the app.
2014-06-09Remove overzealous migration flushes from migration test suiteAndrew Godwin
2014-05-08Tests for #22325Andrew Godwin
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-30Fixed some flake8 issuesAlex Gaynor
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-08-23Fix some small errors in the testsAndrew Godwin
2013-08-11Fix weird planning issues when already fully migrated.Andrew Godwin
2013-07-25Add tests for the migrate command and fix a bug they exposedAndrew Godwin
2013-06-19Fix test running with new apps stuff/migrate actually running migrationsAndrew Godwin
2013-05-30Add an Executor for end-to-end runningAndrew Godwin