Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #33773 -- Made Index with multiple fields respect ↵ | Bruce Cutler | 2022-06-13 | 1 | -1/+2 |
| | | | | | | DEFAULT_INDEX_TABLESPACE. Thanks to Simon Charette for locating where issue lay. | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 2 | -116/+140 |
| | |||||
* | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | 2021-07-15 | 1 | -2/+5 |
| | | | | | | django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵ | Hannes Ljungberg | 2021-02-19 | 1 | -8/+32 |
| | | | | consistent. | ||||
* | Fixed #26167 -- Added support for functional indexes. | Hannes Ljungberg | 2021-01-13 | 1 | -2/+74 |
| | | | | | | Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews. Co-authored-by: Markus Holtermann <info@markusholtermann.eu> | ||||
* | Refs #26709 -- Made Index raise ValueError on non-string fields. | Hannes Ljungberg | 2021-01-12 | 1 | -0/+5 |
| | |||||
* | Refs #28077 -- Added opclasses to Index.__repr__(). | Mariusz Felisiak | 2020-06-17 | 1 | -2/+12 |
| | | | This also removes unnecessary commas between attributes. | ||||
* | Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+. | Hannes Ljungberg | 2020-06-04 | 1 | -0/+38 |
| | |||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 1 | -5/+4 |
| | |||||
* | Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ | ElizabethU | 2019-10-01 | 1 | -0/+3 |
| | | | | | | | | | implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically. | ||||
* | Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵ | can | 2019-07-08 | 2 | -4/+23 |
| | | | | constraints. | ||||
* | Changed django.db.models.indexes.Index imports to django.db.models.Index. | Mariusz Felisiak | 2019-07-08 | 1 | -3/+3 |
| | |||||
* | Fixed #30613 -- Moved index name validation to system checks. | can | 2019-07-05 | 1 | -14/+0 |
| | |||||
* | Refs #28478 -- Prevented database feature based skipping on tests ↵ | Simon Charette | 2019-01-14 | 1 | -2/+5 |
| | | | | | | | disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled. | ||||
* | Refs #28478 -- Prevented connection creation in model_indexes tests. | Simon Charette | 2019-01-13 | 1 | -33/+33 |
| | | | | | Entering a SchemaEditor instance creates a connection but it isn't needed for this test. | ||||
* | Fixed #29547 -- Added support for partial indexes. | Mads Jensen | 2018-10-29 | 1 | -0/+30 |
| | | | | | Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback. | ||||
* | Fixed #28077 -- Added support for PostgreSQL opclasses in Index. | Ian Foote | 2018-06-29 | 1 | -0/+13 |
| | | | | Thanks Vinay Karanam for the initial patch. | ||||
* | Fixed #29178 -- Allowed Index.fields to accept a tuple. | Fabrizio Ettore Messina | 2018-03-08 | 1 | -1/+4 |
| | |||||
* | Refs #28876 -- Fixed incorrect class-based model index name generation for ↵ | Mariusz Felisiak | 2017-12-05 | 1 | -0/+13 |
| | | | | | | | models with quoted db_table. Thanks Simon Charette and Tim Graham for the review and Carlos E. C. Leite for the report. | ||||
* | Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary ↵ | Mariusz Felisiak | 2017-09-18 | 2 | -2/+5 |
| | | | | key in an Index's fields. | ||||
* | Fixed #28465 -- Unified index SQL creation in DatabaseSchemaEditor | Claude Paroz | 2017-08-08 | 1 | -4/+4 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Fixed #28046 -- Added the db_tablespace parameter to class-based indexes. | Mariusz Felisiak | 2017-06-27 | 2 | -4/+46 |
| | | | Thanks Markus Holtermann and Tim Graham for reviews. | ||||
* | Fixed #28282 -- Fixed class-based indexes name for models that only inherit ↵ | Jon Dufresne | 2017-06-08 | 2 | -0/+7 |
| | | | | Model. | ||||
* | Fixed #27915 -- Allowed Meta.indexes to be defined in abstract models. | Tim Graham | 2017-03-21 | 2 | -1/+29 |
| | | | | Thanks Markus Holtermann for review. | ||||
* | Fixed #27135 -- Made index introspection return Index.suffix. | Tim Graham | 2017-02-15 | 1 | -2/+5 |
| | |||||
* | Refs #26709 -- Added type check for models.Index fields argument. | Akshesh | 2016-08-16 | 1 | -0/+4 |
| | |||||
* | Fixed #20888 -- Added support for column order in class-based indexes. | Akshesh | 2016-08-12 | 1 | -0/+5 |
| | |||||
* | Fixed #26808 -- Added Meta.indexes for class-based indexes. | Akshesh | 2016-08-05 | 1 | -1/+5 |
| | | | | | | | | * 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. | ||||
* | Refs #26709 -- Replaced Index.get_name() with set_name_with_model(). | Akshesh | 2016-08-02 | 1 | -3/+3 |
| | | | | | This removes the dependency of the Index class on its 'model' attribute. | ||||
* | Fixed #26709 -- Added class-based indexes. | Akshesh | 2016-06-27 | 3 | -0/+69 |
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice. |