Closes #18191: Remove duplicate SQL indexes (#19074)

* Closes #18191: Remove redundant SQL indexes

* Update developer documentation

* Add a system check for duplicate indexes
This commit is contained in:
Jeremy Stretch
2025-04-03 16:16:57 -04:00
committed by GitHub
parent 6a966ee6c1
commit 67480dcf4f
11 changed files with 106 additions and 19 deletions

View File

@@ -110,9 +110,6 @@ class L2VPNTermination(NetBoxModel):
class Meta:
ordering = ('l2vpn',)
indexes = (
models.Index(fields=('assigned_object_type', 'assigned_object_id')),
)
constraints = (
models.UniqueConstraint(
fields=('assigned_object_type', 'assigned_object_id'),