summaryrefslogtreecommitdiff
path: root/docs/ref/migration-operations.txt
AgeCommit message (Collapse)Author
2026-03-14Fixed #35786 -- Removed outdated note about database defaults in ↵Ahmed Nassar
AddField/AlterField docs.
2026-01-19Fixed unbalanced parentheses in docs.Clifford Gama
2025-09-17Removed versionadded/changed annotations for 5.2.Jacob Walls
2025-08-25Refs #36485 -- Rewrapped docs to 79 columns line length.David Smith
Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content.
2025-03-09Fixed #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-09Fixed #36105 -- Dropped support for MariaDB 10.5.Mariusz Felisiak
2025-01-15Removed versionadded/changed annotations for 5.1.Sarah Boyce
This also removes remaining versionadded/changed annotations for older versions.
2024-11-28Fixed #35038 -- Created AlterConstraint operation.Salvo Polizzi
2024-04-16Doc'd that RemoveField also drops related database objects in PostgreSQL.David Sanders
2024-01-18Fixed typo in docs/ref/migration-operations.txt.Viicos
2024-01-17Fixed #31700 -- Made makemigrations command display meaningful symbols for ↵Amir Karimi
each operation.
2023-09-18Refs #27236 -- Removed Meta.index_together per deprecation timeline.Mariusz Felisiak
2023-09-18Removed versionadded/changed annotations for 4.2.Mariusz Felisiak
This also removes remaining versionadded/changed annotations for older versions.
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-01-17Removed versionadded/changed annotations for 4.1.Mariusz Felisiak
2022-12-28Fixed #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-07-26Refs #27236 -- Doc'd that AlterIndexTogether is no longer officially ↵Mariusz Felisiak
supported for Django 4.2+ migration files.
2022-07-26Refs #27236 -- Reverted AlterIndexTogether deprecation.Mariusz Felisiak
This partly reverts a6385b382e05a614a99e5a5913d8e631823159a2.
2022-07-12Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.David Wobrock
This also deprecates AlterIndexTogether migration operation.
2022-05-12Refs #27064 -- Added RenameIndex migration operation.David Wobrock
2021-09-20Removed versionadded/changed annotations for 3.2.Mariusz Felisiak
2020-05-28Fixed #31468 -- Allowed specifying migration filename in Operation.Adam Johnson
This adds also suggested filename for many built-in operations.
2020-05-04Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and ↵Adam Johnson
comments.
2020-04-01Refs #31320 -- Warned against using BEGIN/COMMIT in RunSQL.Adam Johnson
2020-03-25Improved docs on migration reversibility. (#12619)Adam Johnson
- Clarify reversibility for RunSQL and RunPython operations. - Add example for migrate with irreversible migration. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-03-23Removed obsolete references to South database migrations.Tim Graham
2020-03-10Clarified SeparateDatabaseAndState docs and added example of changing ↵Adam Johnson
ManyToManyField. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Carlton Gibson <carlton.gibson@noumenal.es> Co-Authored-By: René Fleschenberg <rene@fleschenberg.net>
2020-02-29Removed outdated note about not supporting partial indexes by Django.Mariusz Felisiak
Supported since a906c9898284a9aecb5f48bdc534e9c1273864a6.
2019-10-07Fixed #28273 -- Doc'd fast nullable column creation with defaults.Caio Ariede
2019-09-10Removed versionadded/changed annotations for 2.2.Mariusz Felisiak
2019-09-06Fixed #30573 -- Rephrased documentation to avoid words that minimise the ↵Tobias Kunze
involved difficulty. This patch does not remove all occurrences of the words in question. Rather, I went through all of the occurrences of the words listed below, and judged if they a) suggested the reader had some kind of knowledge/experience, and b) if they added anything of value (including tone of voice, etc). I left most of the words alone. I looked at the following words: - simply/simple - easy/easier/easiest - obvious - just - merely - straightforward - ridiculous Thanks to Carlton Gibson for guidance on how to approach this issue, and to Tim Bell for providing the idea. But the enormous lion's share of thanks go to Adam Johnson for his patient and helpful review.
2019-08-11Fixed #30696 -- Removed obsolete mention of CheckConstraint in the ↵Akash Agrawal
AddConstraint docs. Follow up to 8eae094638acf802c8047b341d126d94bc9b45a3.
2019-01-02Fixed typo in docs/ref/migration-operations.txt.Jozef
2018-11-09Fixed #29934 -- Added sqlparse as a require dependency.Tim Graham
2018-07-10Fixed #11964 -- Added support for database check constraints.Ian Foote
2018-04-17Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.Brett Cannon
2017-09-22Removed versionadded/changed annotations for 1.11.Tim Graham
2017-01-21Removed unused imports in example migrations.Arkadiusz Adamski
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Removed versionadded/changed annotations for 1.10.Tim Graham
2017-01-17Fixed #27666 -- Delayed rendering of recursivly related models in migration ↵Markus Holtermann
operations.
2016-08-05Fixed #26808 -- Added Meta.indexes for class-based indexes.Akshesh
* Added the index name to its deconstruction. * Added indexes to sqlite3.schema._remake_table() so that indexes aren't dropped when _remake_table() is called. Thanks timgraham & MarkusH for review and advice.
2016-07-07Refs #26709 -- Required a name for Indexes passed to AddIndex.Akshesh
Thanks to Markush for discussions.
2016-06-27Fixed #26709 -- Added class-based indexes.Akshesh
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
2016-02-05Fixed #25833 -- Added support for non-atomic migrations.Pankrat
Added the Migration.atomic attribute which can be set to False for non-atomic migrations.
2016-02-01Fixed #26124 -- Added missing code formatting to docs headers.rowanv
2016-01-28Fixed #25917 -- Clarified reversibility of RemoveField.Tim Graham
Thanks kaifeldhoff for the draft patch.
2016-01-23Fixed #24109 -- Allowed RunSQL and RunPython operations to be elided.Simon Charette
Thanks to Markus Holtermann and Tim Graham for their review.
2015-12-25Added docs example for manually creating a column with RunSQL.Gen1us2k
2015-11-14Fixed typo in docs/ref/migration-operations.txt.Tim Graham