summaryrefslogtreecommitdiff
path: root/tests/indexes
AgeCommit message (Collapse)Author
2024-05-28Fixed #35469 -- Removed deferred SQL to create index removed by AlterField ↵Jacob Walls
operation.
2023-09-18Refs #27236 -- Removed Meta.index_together per deprecation timeline.Mariusz Felisiak
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2022-07-12Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.David Wobrock
This also deprecates AlterIndexTogether migration operation.
2022-07-11Refs #27236 -- Removed usage of Meta.index_together from ↵David Wobrock
indexes/introspection test models.
2022-06-03Refs #27236 -- Moved models with Meta.index_together inside of test methods.David Wobrock
2022-05-03Fixed CoveringIndexTests.test_covering_partial_index() when ↵Mariusz Felisiak
DEFAULT_INDEX_TABLESPACE is set.
2022-04-13Fixed DatabaseFeatures.supports_index_column_ordering and related tests with ↵Mariusz Felisiak
MyISAM storage engine.
2022-04-13Fixed typo in SchemaIndexesMySQLTests.test_no_index_for_foreignkey().Mariusz Felisiak
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-03-08Refs #26167 -- Added @skipUnlessDBFeature('supports_expression_indexes') to ↵Tim Graham
a test. Failure observed on CockroachDB.
2021-01-13Fixed #26167 -- Added support for functional indexes.Hannes Ljungberg
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews. Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-09-22Made indexes tests use required_db_features.Mariusz Felisiak
2020-06-04Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+.Hannes Ljungberg
2020-02-06Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2019-11-08Fixed #30961 -- Fixed spaces in columns list SQL generated for indexes.Hannes Ljungberg
2019-11-08Refs #30961 -- Added tests for columns list SQL generated for indexes.Hannes Ljungberg
2019-10-24Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with ↵Hannes Ljungberg
opclasses and ordering.
2019-09-10Fixed #30754 -- Prevented inclusion of aliases in partial index conditions.Simon Charette
SQLite doesn't repoint table aliases in partial index conditions on table rename which breaks the documented table alteration procedure. Thanks Pēteris Caune for the report.
2019-01-29Fixed #30108 -- Allowed adding foreign key constraints in the same statement ↵Dan Tao
that adds a field.
2018-12-26Refs #29547 -- Skipped an unsupported partial index test on older versions ↵Tim Graham
of SQLite. Follow up to e5b8626c0eb223cc3d643163882c5902c40ec972.
2018-12-22Refs #29547 -- Corrected SQLite's supports_partial_indexes feature flag.Simon Charette
2018-12-15Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵Simon Charette
are enabled. Prior to this change foreign key constraint references could be left pointing at tables dropped during operations simulating unsupported table alterations because of an unexpected failure to disable foreign key constraint checks. SQLite3 does not allow disabling such checks while in a transaction so they must be disabled beforehand. Thanks ezaquarii for the report and Carlton and Tim for the review.
2018-10-29Fixed #29547 -- Added support for partial indexes.Mads Jensen
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback.
2018-08-01Fixed typos in comments and docs.luz.paz
2018-06-29Fixed #28077 -- Added support for PostgreSQL opclasses in Index.Ian Foote
Thanks Vinay Karanam for the initial patch.
2017-06-21Refs #25530 -- Tracked references of deferred SQL statements.Simon Charette
2017-06-20Refs #25530 -- Changed _create_index_name to take a table as first parameter.Simon Charette
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2016-12-15Refs #27558 -- Isolated indexes test on MySQL.Tim Graham
MySQL schema changes must be done in TransactionTestCase.
2016-12-01Refs #27558 -- Added test for no index on InnoDB ForeignKey.Ed Morley
The refactor in 3f76d1402dac9c2993d588f996dc1c331edbc9a7 fixed the creation of redundant indexes. Forwardport of 82ce55dbbe2d96e8b5d1fcb4a1d52b73e08e7929 from stable/1.10.x
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-08-16Fixed reverse accessor check failures in indexes tests.Adam Chainz
2016-08-11Fixed #24442 -- Improved SchemaEditor's index name truncation.Akshesh
2016-07-15Refs #26889 -- Refactored SchemaEditor to allow backend specific indexes.Jon Dufresne
2016-06-28Fixed #26171 -- Made MySQL create an index on ForeignKeys with ↵Aaron Elliot Ross
db_contraint=False. Refactored "Prevented unneeded index creation on MySQL-InnoDB" (2ceb10f) to avoid setting db_index=False.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-03-03Fixed Oracle build failure introduced by refs #24390.Shai Berger
Used shorter column names to make the generated index name fit within Oracle's limit of 30 characters
2015-03-02Fixed MySQL build failure introduced by refs #24390.Tim Graham
Added table_name back to _create_index_sql() to prevent duplicate index names on MySQL.
2015-03-02Fixed #24390 -- Made migration index names deterministic.László Károlyi
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Removed obsolete SQL generation methods.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-27Fixed #14180 -- Prevented unneeded index creation on MySQL-InnoDBClaude Paroz
Thanks zimnyx for the report and Simon Charette, Tim Graham for the reviews.
2014-12-24Ignored deprecation warnings for CreationIndexesTestsClaude Paroz
2014-12-24Moved test correction from 5b1fb0a75Claude Paroz