| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-02-25 | Refs #36652, #36936 -- Improved path manipulation in a migration test ↵ | pmppk | |
| launching a subprocess. | |||
| 2025-12-15 | Refs #36652 -- Avoided missing imports in a temporary file generated in a ↵ | Jacob Walls | |
| migration test. | |||
| 2025-11-04 | Fixed #36652 -- Increased determinism when loading migrations from disk. | Jayden Kneller | |
| Ordering still depends on pkgutil.iter_modules, which does not guarantee order, but at least now Django is not introducing additional indeterminism, causing CircularDependencyError to appear or not appear in some edge cases. Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | |||
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2023-06-28 | Fixed RecorderTests.test_has_table_cached() on databases that perform ↵ | Mariusz Felisiak | |
| multiple queries when introspecting tables. Thanks Tim Graham for the report and implementation idea. Follow up to ea8cbca579cc6742e119747fc1eb6ecf90638bce. | |||
| 2023-05-25 | Made MigrationRecorder cache has_table() result if django_migrations table ↵ | Tom Forbes | |
| exists. | |||
| 2022-10-31 | Used more augmented assignment statements. | Nick Pope | |
| Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]' | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-08-30 | Refs #24900 -- Added MigrationLoader test for applying squashed migrations. | Jacob Walls | |
| 2021-08-04 | Fixed typos in migrations tests, comments, and error message. | Jacob Walls | |
| 2021-08-04 | Used assertRaisesMessage() to test ↵ | Mariusz Felisiak | |
| MigrationLoader.get_migration_by_prefix()'s error messages. | |||
| 2020-12-31 | Fixed #31413 -- Fixed isolation of migrations.test_loader on databases that ↵ | Hasan Ramezani | |
| don't support transactions. | |||
| 2020-12-29 | Fixed #32302 -- Allowed migrations to be loaded from regular packages with ↵ | William Schwartz | |
| no __file__ attribute. The migrations loader prevents the use of PEP-420 namespace packages for holding apps' migrations modules. Previously the loader tested for this only by checking that app.migrations.__file__ is present. This prevented migrations' being found in frozen Python environments that don't set __file__ on any modules. Now the loader *additionally* checks whether app.migrations.__path__ is a list because namespace packages use a different type for __path__. Namespace packages continue to be forbidden, and, in fact, users of normal Python environments should experience no change whatsoever. | |||
| 2020-07-22 | Reverted "Fixed #30300 -- Allowed migrations to be loaded from directories ↵ | Tim Graham | |
| without __init__.py file." This reverts commit 3cd3bebe8921e14b911b36b2a1cbceef8fb6294e. | |||
| 2020-04-22 | Fixed #31499 -- Stored ModelState.fields into a dict. | Simon Charette | |
| This allows the removal of its O(n) .get_field_by_name method and many other awkward access patterns. While fields were initially stored in a list to preserve the initial model definiton field ordering the auto-detector doesn't take field ordering into account and no operations exists to reorder fields of a model. This makes the preservation of the field ordering completely superflous because field reorganization after the creation of the model state wouldn't be taken into account. | |||
| 2019-10-10 | Fixed #30300 -- Allowed migrations to be loaded from directories without ↵ | Benjy Weinberger | |
| __init__.py file. | |||
| 2019-03-07 | Refs #30186 -- Changed MigrationRecorder.applied_migrations() to return a dict. | Tim Schilling | |
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-09-11 | Fixed #29749 -- Made the migrations loader ignore files starting with a ↵ | Tim Graham | |
| tilde or underscore. Regression in 29150d5da880ac1db15e47052330790cf1b802d2. | |||
| 2018-06-15 | Fixed #29498 -- Fixed a missing pyc test file in source distribution. | Tim Graham | |
| 2018-04-02 | Refs #23406 -- Fixed "invalid escape sequence" warning in migrations test. | Jon Dufresne | |
| 2018-03-23 | Fixed #23406 -- Allowed migrations to be loaded from .pyc files. | Dan Watson | |
| 2018-03-09 | Fixed #29180 -- Fixed a regression where migrations already in the plan were ↵ | Carlton Gibson | |
| readded. Regression in a38ae914d89809aed6d79337b74a8b31b6d3849a. | |||
| 2017-06-01 | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | |
| 2017-02-10 | Added multi_db=True to test cases that access the 'other' db connection. | Tim Graham | |
| Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683. | |||
| 2017-02-03 | Fixed spelling of "nonexistent". | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-09-17 | Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. | Tim Graham | |
| http://bugs.python.org/issue27364 | |||
| 2016-09-16 | Fixed typo in tests/migrations/test_loader.py. | Tim Graham | |
| 2016-09-01 | Fixed #27142, #27110 -- Made makemigrations consistency checks respect ↵ | Tim Graham | |
| database routers. Partially reverted refs #27054 except for one of the tests as this solution supersedes that one. Thanks Shai Berger for the review. | |||
| 2016-08-30 | Fixed #25109 -- Stopped silencing explicitly specified migration modules ↵ | Simon Charette | |
| import errors. Thanks Tim for the review. | |||
| 2016-08-23 | Fixed #27089 -- Added database alias to InconsistentMigrationHistory message. | Tim Graham | |
| 2016-08-18 | Fixed #27054 -- Fixed makemigrations crash with a read-only database. | Jim Nicholls | |
| 2016-08-05 | Fixed #27004 -- Made migrations consistency check ignore unapplied squashed ↵ | Jarek Glowacki | |
| migrations. | |||
| 2016-07-14 | Reverted "Fixed #25388 -- Added an option to allow disabling of migrations ↵ | Tim Graham | |
| during test database creation" This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it disables migrations all the time, not just during tests. | |||
| 2016-05-08 | Sorted migration list order in test; added trailing comma. | Jarek Glowacki | |
| 2016-05-08 | Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph() | Jarek Glowacki | |
| 2016-04-05 | Fixed #25850 -- Made migrate/makemigrations error on inconsistent history. | Attila Tovt | |
| 2016-03-23 | Refs #25388 -- Used in-memory database in test_disable_migrations. | Berker Peksag | |
| 2016-03-23 | Fixed #25388 -- Added an option to allow disabling of migrations during test ↵ | Berker Peksag | |
| database creation | |||
| 2016-02-24 | Used addCleanup() to call recorder.flush() in migration loader tests. | Tim Graham | |
| 2015-09-12 | Fixed #24919 -- Allowed disabling of migrations on a per app basis | Markus Holtermann | |
| 2015-06-02 | Fixed #24895 -- Fixed loading a pair of squashed migrations with a dependency. | Carl Meyer | |
| 2015-05-25 | Fixed #24848 -- Fixed ValueError for faulty migrations module. | Marten Kenbeek | |
| Added apps to unmigrated apps if the migrations module is a file or a folder missing __init__.py. Thanks to Ernest0x for the bug report. | |||
| 2015-05-02 | Moved migration exception classes to shared module | Markus Holtermann | |
| Thanks Aymeric Augustin for the review. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-02-03 | Refactored tests that rely on an ImportError for Python 3.5 compatibility | Tim Graham | |
| A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559 | |||
| 2014-10-30 | Fixed #23733 -- Fixed squashing migrations that depend on multiple apps. | twidi | |
