| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-12-22 | Fixed #35022 -- Fixed RenameIndex() crash on unnamed indexes if exists ↵ | David Wobrock | |
| unique constraint on the same fields. | |||
| 2023-11-28 | Refs #34822, Refs #34986 -- Fixed migrations serializer support for ↵ | Nick Pope | |
| functools.lru_cache(). It turns out that `functools._lru_cache_wrapper` is only a class when CPython's _functools C module provides it, otherwise it is a function. PyPy also provides it as a function. | |||
| 2023-11-23 | Fixed #26827 -- Improved ModelState error message when relations refer model ↵ | Prashant Pandey | |
| classes. | |||
| 2023-11-21 | Fixed #34980 -- Changed migration operation dependencies to namedtuples. | Mariusz Felisiak | |
| 2023-09-18 | Refs #27236 -- Removed Meta.index_together per deprecation timeline. | Mariusz Felisiak | |
| 2023-09-13 | Fixed #34822 -- Added support for serializing functions decorated with ↵ | Nick Pope | |
| functools.lru_cache in migrations. `@functools.cache` and `@functools.lru_cache` return an object of type `functools._lru_cache_wrapper` which prevented the migrations serializer from working. Simply using the existing `FunctionTypeSerializer` for this additional type works as expected. | |||
| 2023-09-11 | Fixed #34824 -- Prevented unnecessary AlterField when ↵ | donghao | |
| ForeignObject.from_fields/to_fields is not a tuple. | |||
| 2023-07-18 | Fixed #34716 -- Fixed serialization of nested class methods in migrations. | Nicolò Intrieri | |
| Co-authored-by: Nicolò <nicolo.intrieri@spinforward.it> | |||
| 2023-07-12 | Fixed #34697 -- Fixed non-deterministic order of dependencies and ↵ | Yury V. Zaytsev | |
| sets/frozensets in migrations. Co-authored-by: Dakota Hawkins <dakotahawkins@gmail.com> | |||
| 2023-05-25 | Made MigrationRecorder cache has_table() result if django_migrations table ↵ | Tom Forbes | |
| exists. | |||
| 2023-05-12 | Fixed #470 -- Added support for database defaults on fields. | Ian Foote | |
| Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews. | |||
| 2023-05-09 | Refs #34534 -- Reduced Add/RemoveConstraint and Add/RenameIndex operations ↵ | Akash Kumar Sen | |
| when optimizing migrations. | |||
| 2023-05-03 | Fixed #34529, Refs #34525 -- Reduced index operations with ↵ | Mariusz Felisiak | |
| Meta.indexes/index_together when optimizing migrations. This makes squashing migrations an available path for changing Meta.index_together, which is deprecated, to Meta.indexes. Follow up to f81032572107846922745b68d5b7191058fdd5f5. | |||
| 2023-05-01 | Fixed #34528 -- Reduced Add/RemoveIndex operations when optimizing migrations. | Mariusz Felisiak | |
| 2023-03-20 | Fixed #34420 -- Corrected the order of imports in generated migration files. | Andy Chosak | |
| 2023-03-10 | Fixed #34333 -- Fixed migration operations ordering when adding ↵ | Durval Carvalho | |
| index/constraint on new foreign key. Thanks Simon Charette and David Wobrock for reviews. | |||
| 2023-02-24 | Fixed #34366 -- Reduced AlterField operations when optimizing migrations. | Laurent Tramoy | |
| 2023-02-14 | Fixed #34250 -- Fixed renaming model with m2m relation to a model with the ↵ | DevilsAutumn | |
| same name. | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | |||
| 2023-01-19 | Refs #32528 -- Simplified MigrationAutodetector._sort_migrations(). | Nick Pope | |
| 2023-01-19 | Fixed #32528 -- Replaced django.utils.topological_sort with ↵ | Nick Pope | |
| graphlib.TopologicalSort(). graphlib.TopologicalSort() is available since Python 3.9. | |||
| 2023-01-18 | Refs #34233 -- Used types.NoneType. | Nick Pope | |
| Available since Python 3.10 where it was reintroduced. | |||
| 2022-12-28 | Fixed #18468 -- Added support for comments on columns and tables. | kimsoungryoul | |
| Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-09-27 | Fixed #34050 -- Replaced invalid chars in migration names with '_'. | Adam Johnson | |
| Thanks to Bishal Gautam for the report and initial implementation. Regression in fa58450a9ab8a1bdd2a5090b51b00078fd85ffa6. Co-Authored-By: Bishal Gautam <bisalgt@gmail.com> | |||
| 2022-08-26 | Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop ↵ | Iuri de Silvio | |
| for models with db_table." Regression in afeafd6036616bac8263d762c1610f22241c0187. This reverts afeafd6036616bac8263d762c1610f22241c0187. Thanks Timothy Thomas for the report. | |||
| 2022-08-25 | Fixed #33938 -- Fixed migration crash for m2m with a through model in ↵ | Simon Charette | |
| another app. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. Thanks bryangeplant for the report. | |||
| 2022-08-25 | Fixed #33916 -- Added support for serialization of enum.Flag in migrations. | Willem Van Onsem | |
| 2022-07-26 | Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle ↵ | Mariusz Felisiak | |
| the deprecation of migration operations." This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1. | |||
| 2022-07-26 | Refs #27236 -- Reverted AlterIndexTogether deprecation. | Mariusz Felisiak | |
| This partly reverts a6385b382e05a614a99e5a5913d8e631823159a2. | |||
| 2022-07-21 | Refs #27236 -- Made cosmetic edits to Meta.index_together deprecation. | Mariusz Felisiak | |
| This should make it more straightforward to move forward when deprecation ends. | |||
| 2022-07-16 | Fixed #33848 -- Optimized StateApps.clone(). | Iuri de Silvio | |
| 2022-07-12 | Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. | David Wobrock | |
| This also deprecates AlterIndexTogether migration operation. | |||
| 2022-07-08 | Refs #27236 -- Added generic mechanism to handle the deprecation of ↵ | David Wobrock | |
| migration operations. | |||
| 2022-06-02 | Fixed #31788 -- Fixed migration optimization after altering field to ↵ | David Wobrock | |
| ManyToManyField. This makes AddField() used for altering to ManyToManyField, dependent on the prior RemoveField. | |||
| 2022-05-17 | Refs #27064 -- Made migrations generate RenameIndex operations when moving ↵ | David Wobrock | |
| indexes from index_together to Meta.indexes. | |||
| 2022-05-17 | Refs #27064 -- Refactored out MigrationAutodetector.create_renamed_fields(). | David Wobrock | |
| 2022-05-16 | Refs #27064 -- Made migrations generate RenameIndex operations when renaming ↵ | David Wobrock | |
| Meta.indexes. | |||
| 2022-05-16 | Fixed #33710 -- Made RenameIndex operation a noop when the old and new name ↵ | David Wobrock | |
| match. | |||
| 2022-05-12 | Refs #27064 -- Added RenameIndex migration operation. | David Wobrock | |
| 2022-04-21 | Fixed #33509 -- Added "(no-op)" to sqlmigrate output for operations without ↵ | Adam Johnson | |
| SQL statement. | |||
| 2022-04-04 | Fixed #33605 -- Fixed migration crash when altering RegexValidator to ↵ | Brian Helba | |
| pre-compiled regular expression. | |||
| 2022-03-23 | Refs #32365 -- Made migration writer use datetime.timezone.utc. | Carlton Gibson | |
| 2022-03-11 | Fixed #33572 -- Implemented CreateModel/AlterModelManagers reduction. | Adam Johnson | |
| 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 | |
| 2022-02-03 | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | |
| In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | |||
| 2022-02-01 | Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model. | Kirill Safronov | |
| Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. | |||
| 2022-01-21 | Fixed #33449 -- Fixed makemigrations crash on models without ↵ | Fabian Büchler | |
| Meta.order_with_respect_to but with _order field. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. | |||
| 2022-01-04 | Fixed #33402 -- Optimized multiple AlterFooTogether operations. | David Wobrock | |
| 2022-01-03 | Refs #29026 -- Allowed customizing InteractiveMigrationQuestioner's prompt ↵ | Jacob Walls | |
| destination. Previously, the questioner did not obey the value of stdout provided to the command. | |||
