summaryrefslogtreecommitdiff
path: root/django/db/migrations/operations/models.py
AgeCommit message (Expand)Author
2025-06-19Refs #35038 -- Reduced CreateModel/AlterConstraint operations when optimizing...Jacob Walls
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2025-02-16Refs #35704 -- Used copy.replace() in Operation.reduce() methods.Adam Johnson
2024-12-17Fixed #34856 -- Fixed references to index_together in historical migrations.Andrés Reverón Molina
2024-11-28Fixed #35038 -- Created AlterConstraint operation.Salvo Polizzi
2024-09-03Fixed #35704 -- Fixed reduction for AddIndex subclasses.Adam Johnson
2024-08-30Fixed #35700 -- Added AlterModelTable and AlterModelTableComment reductions.Adam Johnson
2024-06-13Fixed #34881 -- Fixed a crash when renaming a model with multiple ManyToManyF...Anže Pečar
2024-02-09Refs #34534 -- Reduced constraint operations with Meta.constraints when optim...Ben Cail
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
2024-01-17Fixed #31700 -- Made makemigrations command display meaningful symbols for ea...Amir Karimi
2023-12-22Fixed #35022 -- Fixed RenameIndex() crash on unnamed indexes if exists unique...David Wobrock
2023-09-18Refs #27236 -- Removed Meta.index_together per deprecation timeline.Mariusz Felisiak
2023-05-09Refs #34534 -- Reduced Add/RemoveConstraint and Add/RenameIndex operations wh...Akash Kumar Sen
2023-05-03Fixed #34529, Refs #34525 -- Reduced index operations with Meta.indexes/index...Mariusz Felisiak
2023-05-01Fixed #34528 -- Reduced Add/RemoveIndex operations when optimizing migrations.Mariusz Felisiak
2023-02-14Fixed #34250 -- Fixed renaming model with m2m relation to a model with the sa...DevilsAutumn
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
2022-08-26Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop f...Iuri de Silvio
2022-07-26Refs #27236 -- Reverted AlterIndexTogether deprecation.Mariusz Felisiak
2022-07-12Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.David Wobrock
2022-05-16Fixed #33710 -- Made RenameIndex operation a noop when the old and new name m...David Wobrock
2022-05-12Refs #27064 -- Added RenameIndex migration operation.David Wobrock
2022-03-11Fixed #33572 -- Implemented CreateModel/AlterModelManagers reduction.Adam Johnson
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-04Fixed #33402 -- Optimized multiple AlterFooTogether operations.David Wobrock
2021-10-27Fixed #33201 -- Made RenameModel operation a noop for models with db_table.Iuri de Silvio
2021-06-29Refs #29898 -- Moved state_forwards()'s logic from migration operations to Pr...manav014
2021-06-22Refs #29898 -- Moved django.db.migrations.operations.utils to django.db.migra...manav014
2021-04-16Refs #29899 -- Moved resolve_relation() to django.db.migrations.utils.David Wobrock
2021-01-13Fixed #26167 -- Added support for functional indexes.Hannes Ljungberg
2020-12-18Fixed #32262 -- Fixed migration optimization for model creation and Meta opti...Hasan Ramezani
2020-05-28Fixed #31468 -- Allowed specifying migration filename in Operation.Adam Johnson
2020-04-22Fixed #31499 -- Stored ModelState.fields into a dict.Simon Charette
2020-04-10Refs #28305 -- Consolidated field referencing detection in migrations.Simon Charette
2020-04-09Replaced ModelTuple by a model resolving function and bare tuples.Simon Charette
2020-04-09Made Operation.references_model/references_field require app_label.Simon Charette
2020-04-09Refs #22608 -- Made app_label required when optimizing migrations.Simon Charette
2019-08-02Simplified AlterModelTable by making it subclass ModelOptionOperation.Nick Pope
2018-10-29Fixed #29868 -- Retained database constraints on SQLite table rebuilds.Simon Charette
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-14Fixed #29755 -- Made migrations detect changes to Meta.default_related_name.Simon Charette
2018-07-19Refs #28862 -- Removed the FieldRelatedOptionOperation.reduce() optimization.Simon Charette
2018-07-19Fixed #26906 -- Reduced alter together operations code duplication.Simon Charette
2018-07-19Fixed #27731 -- Implemented CreateModel/AlterFooOperation reduction.Simon Charette
2018-07-19Fixed #28862 -- Disabled optimization of AlterFooTogether and RemoveField.Simon Charette
2018-07-11Removed in_between from Operation.reduce()'s signature.Simon Charette
2018-07-11Introduced ModelTuple to remove migrations boilerplate.Simon Charette
2018-07-11Fixed #26720 -- Prevented invalid CreateModel optimizations of related fields.Simon Charette