From 7a7f4ef51e35fb899c140889fd6a877c758a9cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Fern=C3=A1ndez=20Poyatos?= Date: Wed, 18 Jun 2025 17:19:07 +0200 Subject: [PATCH] feat(models): skip django check from partitioned indexes --- api/src/backend/api/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/src/backend/api/models.py b/api/src/backend/api/models.py index 57ae119d66..3039b26029 100644 --- a/api/src/backend/api/models.py +++ b/api/src/backend/api/models.py @@ -772,10 +772,11 @@ class Finding(PostgresPartitionedModel, RowLevelSecurityProtectedModel): GinIndex(fields=["resource_services"], name="gin_find_service_idx"), GinIndex(fields=["resource_regions"], name="gin_find_region_idx"), GinIndex(fields=["resource_types"], name="gin_find_rtype_idx"), - models.Index( - fields=["tenant_id", "scan_id", "check_id"], - name="find_tenant_scan_check_idx", - ), + # Indexes added through custom operation + # models.Index( + # fields=["tenant_id", "scan_id", "check_id"], + # name="find_tenant_scan_check_idx", + # ), ] class JSONAPIMeta: