summaryrefslogtreecommitdiff
path: root/docs/ref/migration-operations.txt
AgeCommit message (Collapse)Author
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
2015-09-25Corrected use of 'affect' vs 'effect' in docs.Rob Hudson
2015-09-23Removed versionadded/changed annotations for 1.8.Tim Graham
2015-09-19Fixed #25430 -- Fixed incorrect RunSQL examples.Flavio Curella
2015-09-09Fixed #25371 -- Added reverse_sql and reverse_code examples to docs.Bibhas
2015-08-31Cleaned up example migration files in docsTyson Clugg
2015-06-05Capitalized "Python" in docs.Tim Graham
2015-05-17Fixed #24630 -- Clarified docs about RunPython transactions.Tim Graham
Thanks Markus Holtermann for review.
2015-04-20Fixed #24591 -- Optimized cloning of ModelState objects.Marten Kenbeek
Changed ModelState.clone() to create a shallow copy of self.fields and self.managers.
2015-02-01Removed versionadded/changed notes for 1.7.Tim Graham
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-10Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.Loic Bistuer
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-09Fixed #24098 -- Added no-op attributes to RunPython and RunSQLMarkus Holtermann
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
2015-01-07Updated migration docs to match changes from a159b1facClaude Paroz
2014-12-15Fixed #23822 -- Added support for serializing model managers in migrationMarkus Holtermann
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
2014-10-09Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column ↵Markus Holtermann
into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-10-02Fixed #23426 -- Allowed parameters in migrations.RunSQLMarkus Holtermann
Thanks tchaumeny and Loic for reviews.
2014-09-29Fixed #17638 -- Added crosslinks between topic and reference guides.Duane Hilton
Thanks oinopion for the suggestion and jarus for the initial patch.
2014-09-24Fixed #23426 -- Don't require double percent sign in RunSQL without parametersMarkus Holtermann
2014-09-02Revert "Undocumented SeparateDatabaseAndState so crash is not RB. Refs #22918"Tim Graham
This reverts commit a8521a2c228bd9e981dc8a2bea4e26f4544a52a7.
2014-09-01Undocumented SeparateDatabaseAndState so crash is not RB. Refs #22918Andrew Godwin
2014-08-27Fixed #23349 -- Clarified details about RunPython's apps argument.Richard Eames