Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#32120 closed New feature (fixed)

Add DatabaseFeatures.indexes_foreign_keys

Reported by: Tim Graham Owned by: Tim Graham
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

CockroachDB (starting with 20.2) doesn't create indexes for foreign keys. A few Django tests need to be adapted.

Change History (4)

comment:1 by Simon Charette, 4 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham, 4 years ago

Has patch: set

comment:3 by GitHub <noreply@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In ede9fac7:

Fixed #32120 -- Added DatabaseFeatures.indexes_foreign_keys.

comment:4 by GitHub <noreply@…>, 4 years ago

In 8ed024b:

Refs #32120 -- Fixed test_add_inline_fk_index_update_data for DatabaseFeatures.indexes_foreign_keys.

This test creates an index with editor.add_index() so it's present
regardless of the database's behavior. Reverted the change from
ede9fac75807fe5810df66280a60e7068cc97e4a.

Note: See TracTickets for help on using tickets.
Back to Top