Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -4/+4 |
| | |||||
* | Refs #22608 -- Made app_label required when optimizing migrations. | Simon Charette | 2020-04-09 | 1 | -5/+4 |
| | | | | | This paved the way for the removal of lot of logic when app_label was not specified. | ||||
* | Refs #26064 -- Avoided unnecessary list slicing in migration optimizer. | Simon Charette | 2020-03-02 | 1 | -1/+1 |
| | | | The in_between list is only necessary if an optimization is possible. | ||||
* | Removed in_between from Operation.reduce()'s signature. | Simon Charette | 2018-07-11 | 1 | -2/+2 |
| | | | | | It isn't used since FieldOperation.references_model() takes into account models referenced by the field it's operating on. | ||||
* | Fixed #27845 -- Allowed both right and left optimizations of operations. | Simon Charette | 2018-07-11 | 1 | -8/+16 |
| | | | | Thanks Raphael Gaschignard for the suggestion. | ||||
* | Refs #27768 -- Reversed order of optimized and in-between operations. | Simon Charette | 2018-07-11 | 1 | -2/+3 |
| | | | | | | Operations can only be optimized through if they don't reference any of the state the operation they are compared against defines or alters, so it's safe to reverse the order. | ||||
* | Refs #27656 -- Updated django.db docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-28 | 1 | -4/+2 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -3/+0 |
| | |||||
* | Fixed #26064 -- Moved operation reduction logic to their own class. | Simon Charette | 2016-01-23 | 1 | -305/+6 |
| | | | | Thanks to Markus Holtermann and Tim Graham for their review. | ||||
* | Sorted reduce methods in migration optimizer | Markus Holtermann | 2015-06-16 | 1 | -60/+70 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Fixed #24828 -- Allowed migration optimization across AlterFooTogether | Markus Holtermann | 2015-06-16 | 1 | -0/+24 |
| | | | | | | | | | | | | | | The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review. | ||||
* | Changed reduce method lookup in migration optimizer to dict | Markus Holtermann | 2015-06-14 | 1 | -110/+29 |
| | | | | Thanks Andrew Godwin and Simon Charette for the review. | ||||
* | Explicitly imported migration operations in optimizer | Markus Holtermann | 2015-06-14 | 1 | -60/+64 |
| | | | | Thanks Andrew Godwin for the review. | ||||
* | Optimized duplicate AlterModelTable/AlterFooTogether/AlterOWRT | Markus Holtermann | 2015-06-14 | 1 | -0/+28 |
| | | | | Thanks Andrew Godwin for the review. | ||||
* | Took AlterOrderWithRespectTo into account when optimizing migrations | Markus Holtermann | 2015-06-14 | 1 | -0/+6 |
| | | | | Thanks Andrew Godwin for the review. | ||||
* | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | 2015-03-25 | 1 | -4/+4 |
| | | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | ||||
* | Fixed typos in code comments. | Adam Taylor | 2015-01-20 | 1 | -1/+1 |
| | |||||
* | Refs #23822 -- Made MigrationOptimizer aware of model managers | Markus Holtermann | 2015-01-07 | 1 | -0/+5 |
| | |||||
* | Refs #22608 -- Optimized migration optimizer | Markus Holtermann | 2015-01-07 | 1 | -73/+75 |
| | | | | Moved list constants instantiation into optimizer's __init__. | ||||
* | Refs #22608 -- Optimized migration optimizer and migrate by caching calls to ↵ | Ulrich Petri | 2015-01-07 | 1 | -18/+21 |
| | | | | str.lower() | ||||
* | Limited lines to 119 characters in django/{contrib,db}. | Berker Peksag | 2014-10-29 | 1 | -3/+6 |
| | | | | Refs #23395. | ||||
* | Fixed #22875: Optimizer did not take through= into account. | Andrew Godwin | 2014-06-22 | 1 | -5/+20 |
| | |||||
* | Fixed #22847: Optimizer wasn't expecting unresolved FKs | Andrew Godwin | 2014-06-16 | 1 | -4/+7 |
| | |||||
* | Fixed several flake8 errors | Alex Gaynor | 2014-06-15 | 1 | -2/+2 |
| | |||||
* | Fixed #22568: Better proxy model support in migrations | Andrew Godwin | 2014-06-15 | 1 | -1/+2 |
| | |||||
* | Fixed flake8 errors. | Tim Graham | 2014-06-06 | 1 | -1/+1 |
| | |||||
* | Rewrote migration autodetector to involve actual computer science. | Andrew Godwin | 2014-06-05 | 1 | -17/+26 |
| | | | | Fixes #22605, #22735; also lays the ground for some other fixes. | ||||
* | Added a bunch of missing unicode_literals | Claude Paroz | 2014-05-06 | 1 | -0/+2 |
| | | | | Refs #22564. | ||||
* | Fixed many typos in comments and docstrings. | Rodolfo Carvalho | 2014-03-03 | 1 | -4/+4 |
| | | | | Thanks Piotr Kasprzyk for help with the patch. | ||||
* | Fixed E124 pep8 warnings. | Loic Bistuer | 2013-12-10 | 1 | -50/+64 |
| | |||||
* | flake8 fixes | Alex Gaynor | 2013-11-06 | 1 | -24/+24 |
| | |||||
* | Massive migration optimiser improvements + RenameModel opn | Andrew Godwin | 2013-11-06 | 1 | -10/+207 |
| | |||||
* | Fixed all E226 violations | Alex Gaynor | 2013-11-03 | 1 | -3/+3 |
| | |||||
* | More attacking E302 violators | Alex Gaynor | 2013-11-02 | 1 | -0/+1 |
| | |||||
* | Improve migration optimizer to be able to optimize through other ops | Andrew Godwin | 2013-10-16 | 1 | -5/+20 |
| | |||||
* | Initial version of MigrationOptimizer and tests | Andrew Godwin | 2013-10-02 | 1 | -0/+104 |