summaryrefslogtreecommitdiff
path: root/django/db/migrations/autodetector.py
AgeCommit message (Expand)Author
2025-12-19Fixed #36791 -- Made MigrationAutodetector recreate through table when m2m ta...Johanan Oppong Amoateng
2025-09-19Refs #36438 -- Simplified retrieval of GeneratedField base fields in migratio...Clifford Gama
2025-07-25Fixed #36438 -- Made MigrationAutodetector remove generated fields before the...Clifford Gama
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
2025-07-03Refs #27236 -- Removed references to removed index_together migration methods.Clifford Gama
2025-06-27Fixed #35595, #35962 -- Removed indexes and constraints before fields in migr...wookkl
2025-06-23Fixed #35305 -- Avoided recreating constraints on fields renamed via db_column.Jacob Walls
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2025-02-06Refs #22997 -- Prevented requesting a default value for auto fields.Ben Cail
2025-01-10Refs #36064 -- Added Model.has_db_default() to encapsulate NOT_PROVIDED checks.Simon Charette
2024-11-28Fixed #35038 -- Created AlterConstraint operation.Salvo Polizzi
2024-05-02Fixed #35359 -- Fixed migration operations ordering when adding fields refere...DevilsAutumn
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
2023-11-21Fixed #34980 -- Changed migration operation dependencies to namedtuples.Mariusz Felisiak
2023-09-18Refs #27236 -- Removed Meta.index_together per deprecation timeline.Mariusz Felisiak
2023-09-11Fixed #34824 -- Prevented unnecessary AlterField when ForeignObject.from_fiel...donghao
2023-05-12Fixed #470 -- Added support for database defaults on fields.Ian Foote
2023-03-10Fixed #34333 -- Fixed migration operations ordering when adding index/constra...Durval Carvalho
2023-01-19Refs #32528 -- Simplified MigrationAutodetector._sort_migrations().Nick Pope
2023-01-19Fixed #32528 -- Replaced django.utils.topological_sort with graphlib.Topologi...Nick Pope
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
2022-08-25Fixed #33938 -- Fixed migration crash for m2m with a through model in another...Simon Charette
2022-07-21Refs #27236 -- Made cosmetic edits to Meta.index_together deprecation.Mariusz Felisiak
2022-06-02Fixed #31788 -- Fixed migration optimization after altering field to ManyToMa...David Wobrock
2022-05-17Refs #27064 -- Made migrations generate RenameIndex operations when moving in...David Wobrock
2022-05-17Refs #27064 -- Refactored out MigrationAutodetector.create_renamed_fields().David Wobrock
2022-05-16Refs #27064 -- Made migrations generate RenameIndex operations when renaming ...David Wobrock
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-01Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model.Kirill Safronov
2021-11-22Fixed #33305 -- Fixed autodetector crash for ForeignKey with hardcoded "to" a...Baptiste Mispelon
2021-10-25Fixed #31503 -- Made autodetector remove unique/index_together before alterin...David Wobrock
2021-10-19Fixed #33197 -- Made field rename with prior matching db_column change a noop.Simon Charette
2021-10-15Fixed #23953 -- Made makemigrations continue number sequence for squashed mig...Jacob Walls
2021-10-06Fixed #23408 -- Added migrations questioner prompt for adding unique fields w...Jacob Walls
2021-08-26Refs #29898 -- Changed fields in ProjectState's relation registry to dict.Mariusz Felisiak
2021-05-29Fixed typos in comments and docs.David Sanders
2021-04-16Fixed #29899 -- Made autodetector use model states instead of model classes.David Wobrock
2021-04-16Refs #29899 -- Improved variable names in MigrationAutodetector._detect_chang...David Wobrock
2020-08-08Fixed #31831 -- Fixed migration operations ordering when adding order_with_re...Iuri de Silvio
2020-06-24Refs #31703 -- Moved MigrationAutodetector.suggest_name() to Migration.Jon Dufresne
2020-05-28Fixed #31468 -- Allowed specifying migration filename in Operation.Adam Johnson
2020-05-26Fixed #31416 -- Made autodetector find dependencies for MTI model creation on...Nan Liu
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
2020-05-04Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and c...Adam Johnson
2020-04-22Fixed #31499 -- Stored ModelState.fields into a dict.Simon Charette
2020-04-09Refs #22608 -- Made app_label required when optimizing migrations.Simon Charette
2020-03-25Fixed #23916 -- Allowed makemigrations to handle related model name case chan...Adam Johnson
2019-10-14Fixed #30868 -- Prevented unnecessary AlterField when renaming a referenced pk.Simon Charette
2019-09-03Fixed #30691 -- Made migrations autodetector find dependencies for foreign ke...Viktor Lomakin