| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-11-18 | [6.0.x] Fixed #36141 -- Checked for applied replaced migrations recursively. | Georgi Yanchev | |
| Regression in 64b1ac7292c72d3551b2ad70b2a78c8fe4af3249. Backport of b07298a73a8d444b3618aad8005055bee5ead8cb from main. | |||
| 2025-09-29 | [6.0.x] Fixed assertIndexExists() crash when non-index constraint exists on ↵ | Mariusz Felisiak | |
| the same columns. Backport of 8b84364d469e394d9f04b4f96a7da1fc16d93fce from main | |||
| 2025-09-05 | Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField. | Tim Graham | |
| 2025-08-04 | Fixed #35972 -- Fixed lookup crashes after subquery annotations. | Jacob Walls | |
| 2025-07-25 | Refs #36438 -- Made FieldOperation.references_field() detect references in ↵ | Clifford Gama | |
| GeneratedField.expression. Thanks to Simon Charette for the suggestion and review. | |||
| 2025-07-25 | Fixed #36438 -- Made MigrationAutodetector remove generated fields before ↵ | Clifford Gama | |
| their base fields. Thanks to Colton Saska for the report and to Simon Charette for the review. | |||
| 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. | |||
| 2025-07-23 | Refs #36500 -- Shortened some long docstrings and comments. | Mike Edmunds | |
| Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes. | |||
| 2025-07-23 | Removed double spaces after periods and within phrases. | Sarah Boyce | |
| 2025-06-27 | Fixed #35595, #35962 -- Removed indexes and constraints before fields in ↵ | wookkl | |
| migrations. | |||
| 2025-06-23 | Fixed #35305 -- Avoided recreating constraints on fields renamed via db_column. | Jacob Walls | |
| 2025-06-19 | Refs #35038 -- Reduced CreateModel/AlterConstraint operations when ↵ | Jacob Walls | |
| optimizing migrations. | |||
| 2025-05-13 | Fixed #36383 -- Improved migration serialization for functools.partial objects. | Adam Johnson | |
| 2025-05-13 | Refs #36383 -- Added extra tests for serializing functools.partial in ↵ | Adam Johnson | |
| tests/migrations/test_writer.py. This includes a test helper to better assert over the expected output. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-05-13 | Refs #36383 -- Extended DeconstructibleSerializer to support non-identifier ↵ | Adam Johnson | |
| keyword arguments. In Python, keyword arguments must normally be valid identifiers (i.e., variable names that follow Python's naming rules). However, Python dicts can have keys that aren't valid identifiers, like "foo-bar" or "123foo". This commit ensures that keyword arguments that are nt valid identifiers, are properly handled when deconstructing an object. | |||
| 2025-05-12 | Fixed #33174 -- Fixed migrations crash for model inheriting from Generic[T]. | Thibaut Decombe | |
| 2025-04-16 | Fixed #36274 -- Added support for run_before and atomic in MigrationWriter. | Mikuláš Poul | |
| 2025-04-01 | Fixed #36184 -- Allowed migrating forward to squashed migrations. | Jacob Walls | |
| 2025-03-31 | Fixed #36265 -- Added support for serialization of ZoneInfo instances in ↵ | Song Junho | |
| migrations. | |||
| 2025-03-09 | Fixed #35487 -- Removed CASCADE from RemoveField() on PostgreSQL. | petr.prikryl | |
| Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Adam Johnson <me@adamj.eu> Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | |||
| 2025-02-18 | Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. | Mariusz Felisiak | |
| datetime.UTC was added in Python 3.11. | |||
| 2025-02-13 | Fixed #36146 -- Recorded applied/unapplied migrations recursively. | Georgi Yanchev | |
| 2025-02-06 | Refs #22997 -- Prevented requesting a default value for auto fields. | Ben Cail | |
| 2025-01-22 | Fixed #24529 -- Allowed double squashing of migrations. | Georgi Yanchev | |
| Co-authored-by: Raphael Gaschignard <raphael@rtpg.co> | |||
| 2025-01-13 | Refs #373 -- Adjusted test allowing AutoField in composite primary keys. | Simon Charette | |
| This is not a properly supported feature yet and should be revisited by refs #35957. | |||
| 2024-12-27 | Fixed #35991 -- Fixed crash when adding non-nullable field after renaming ↵ | Mariusz Felisiak | |
| part of CompositePrimaryKey on SQLite. | |||
| 2024-12-19 | Fixed #36016 -- Prevented traceback when quitting makemigrations with Ctrl-C. | Aman Sharma | |
| 2024-12-17 | Fixed #35969 -- Disallowed specifying a USING clause for altered generated ↵ | lufafajoshua | |
| field. PostgreSQL versions 16.5 and above no longer permit the use of a USING clause when changing the type of a generated column. | |||
| 2024-12-17 | Fixed #34856 -- Fixed references to index_together in historical migrations. | Andrés Reverón Molina | |
| While AlterUniqueTogether has been documented to be still allowed in historical migrations for the foreseeable future it has been crashing since 2abf417c815c20 was merged because the latter removed support for Meta.index_together which the migration framework uses to render models to perform schema changes. CreateModel(options["unique_together"]) was also affected. Refs #27236. Co-authored-by: Simon Charette <charette.s@gmail.com> | |||
| 2024-12-11 | Fixed #35920 -- Observed requires_system_checks in migrate and runserver. | Jacob Walls | |
| Before, the full suite of system checks was run by these commands regardless if requires_system_checks had been overridden. Co-authored-by: Simon Charette <charette.s@gmail.com> | |||
| 2024-12-09 | Fixed #35935 -- Colorized system checks when running sqlmigrate. | Jacob Walls | |
| 2024-11-29 | Fixed #35308 -- Handled OSError when launching code formatters. | Jacob Walls | |
| Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2024-11-29 | Fixed #373 -- Added CompositePrimaryKey. | Bendeguz Csirmaz | |
| Thanks Lily Foote and Simon Charette for reviews and mentoring this Google Summer of Code 2024 project. Co-authored-by: Simon Charette <charette.s@gmail.com> Co-authored-by: Lily Foote <code@lilyf.org> | |||
| 2024-11-28 | Fixed #35038 -- Created AlterConstraint operation. | Salvo Polizzi | |
| 2024-11-28 | Refs #35038 -- Added test for drop and recreation of a constraint. | Salvo Polizzi | |
| 2024-11-18 | Fixed #35882 -- Made migration questioner loop on all errors. | Adam Johnson | |
| 2024-11-18 | Refs #35882 -- Added test for migration questioner KeyboardInterrupt. | Adam Johnson | |
| 2024-10-15 | Fixed #35656 -- Added an autodetector attribute to the makemigrations and ↵ | leondaz | |
| migrate commands. | |||
| 2024-09-03 | Fixed #35704 -- Fixed reduction for AddIndex subclasses. | Adam Johnson | |
| 2024-09-03 | Fixed #35724 -- Tested migration commands handling of distributed namespace ↵ | Jacob Walls | |
| packages. Also increased coverage of module_loading.py. | |||
| 2024-08-30 | Fixed #35700 -- Added AlterModelTable and AlterModelTableComment reductions. | Adam Johnson | |
| 2024-08-01 | Reverted "Fixed #28646 -- Prevented duplicate index when unique is set to ↵ | Sarah Boyce | |
| True on PostgreSQL." This reverts commit 9cf9c796be8dd53bc3b11355ff39d65c81d7be6d due to a crash on Oracle as it didn't allow multiple indexes on the same field. | |||
| 2024-07-30 | Fixed #28646 -- Prevented duplicate index when unique is set to True on ↵ | Ben Cail | |
| PostgreSQL. | |||
| 2024-07-25 | Fixed #35625 -- Fixed a crash when adding a field with db_default and check ↵ | Simon Charette | |
| constraint. This is the exact same issue as refs #30408 but for creating a model with a constraint containing % escapes instead of column addition. All of these issues stem from a lack of SQL and parameters separation from the BaseConstraint DDL generating methods preventing them from being mixed with other parts of the schema alteration logic that do make use of parametrization on some backends (e.g. Postgres, MySQL for DEFAULT). Prior to the addition of Field.db_default and GeneratedField in 5.0 parametrization of DDL was never exercised on model creation so this is effectively a bug with db_default as the GeneratedField case was addressed by refs #35336. Thanks Julien Chaumont for the report and Mariusz Felisiak for the review. | |||
| 2024-07-10 | Fixed #35424 -- Checked order_with_respect_to is available when migrating ↵ | Daniel Patrick | |
| _order fields. Migrations would crash following the removal of an order_with_respect_to field from a model and the addition of an _order field. | |||
| 2024-06-14 | Refs #34881 -- Fixed ↵ | Mariusz Felisiak | |
| OperationTests.test_rename_m2m_field_with_2_references() test on Oracle. | |||
| 2024-06-13 | Fixed #34881 -- Fixed a crash when renaming a model with multiple ↵ | Anže Pečar | |
| ManyToManyField.through references on SQLite. Thank you to dennisvang for the report and Jase Hackman for the test. Co-authored-by: Jase Hackman <jase.hackman@zapier.com> | |||
| 2024-05-23 | Fixed typo in migrations test name. | Tim Graham | |
| 2024-05-03 | Fixed #35422 -- Fixed migrations crash when altering GeneratedField ↵ | Mariusz Felisiak | |
| referencing rename field. Thanks Sarah Boyce for the report and Simon Charette for the implementation idea. | |||
| 2024-05-02 | Fixed #35359 -- Fixed migration operations ordering when adding fields ↵ | DevilsAutumn | |
| referenced by GeneratedField.expression. Thank you to Simon Charette for the review. | |||
