summaryrefslogtreecommitdiff
path: root/tests/model_indexes
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #33773 -- Made Index with multiple fields respect ↵Bruce Cutler2022-06-131-1/+2
| | | | | | DEFAULT_INDEX_TABLESPACE. Thanks to Simon Charette for locating where issue lay.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-116/+140
|
* Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵Daniyal2021-07-151-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 Ljungberg2021-02-191-8/+32
| | | | consistent.
* Fixed #26167 -- Added support for functional indexes.Hannes Ljungberg2021-01-131-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 Ljungberg2021-01-121-0/+5
|
* Refs #28077 -- Added opclasses to Index.__repr__().Mariusz Felisiak2020-06-171-2/+12
| | | This also removes unnecessary commas between attributes.
* Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+.Hannes Ljungberg2020-06-041-0/+38
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-5/+4
|
* Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU2019-10-011-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 ↵can2019-07-082-4/+23
| | | | constraints.
* Changed django.db.models.indexes.Index imports to django.db.models.Index.Mariusz Felisiak2019-07-081-3/+3
|
* Fixed #30613 -- Moved index name validation to system checks.can2019-07-051-14/+0
|
* Refs #28478 -- Prevented database feature based skipping on tests ↵Simon Charette2019-01-141-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 Charette2019-01-131-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 Jensen2018-10-291-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 Foote2018-06-291-0/+13
| | | | Thanks Vinay Karanam for the initial patch.
* Fixed #29178 -- Allowed Index.fields to accept a tuple.Fabrizio Ettore Messina2018-03-081-1/+4
|
* Refs #28876 -- Fixed incorrect class-based model index name generation for ↵Mariusz Felisiak2017-12-051-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 Felisiak2017-09-182-2/+5
| | | | key in an Index's fields.
* Fixed #28465 -- Unified index SQL creation in DatabaseSchemaEditorClaude Paroz2017-08-081-4/+4
| | | | Thanks Tim Graham for the review.
* Fixed #28046 -- Added the db_tablespace parameter to class-based indexes.Mariusz Felisiak2017-06-272-4/+46
| | | Thanks Markus Holtermann and Tim Graham for reviews.
* Fixed #28282 -- Fixed class-based indexes name for models that only inherit ↵Jon Dufresne2017-06-082-0/+7
| | | | Model.
* Fixed #27915 -- Allowed Meta.indexes to be defined in abstract models.Tim Graham2017-03-212-1/+29
| | | | Thanks Markus Holtermann for review.
* Fixed #27135 -- Made index introspection return Index.suffix.Tim Graham2017-02-151-2/+5
|
* Refs #26709 -- Added type check for models.Index fields argument.Akshesh2016-08-161-0/+4
|
* Fixed #20888 -- Added support for column order in class-based indexes.Akshesh2016-08-121-0/+5
|
* Fixed #26808 -- Added Meta.indexes for class-based indexes.Akshesh2016-08-051-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().Akshesh2016-08-021-3/+3
| | | | | This removes the dependency of the Index class on its 'model' attribute.
* Fixed #26709 -- Added class-based indexes.Akshesh2016-06-273-0/+69
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.