From 3b320c7177be10be73df97fd9aa929af010f5306 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Tue, 10 Jun 2025 09:52:05 -0700 Subject: [PATCH] Fix missing search vector column Signed-off-by: Bryan Frimin --- pkg/coredata/control.go | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkg/coredata/control.go b/pkg/coredata/control.go index d409f585d..a96aab16c 100644 --- a/pkg/coredata/control.go +++ b/pkg/coredata/control.go @@ -118,6 +118,7 @@ WITH ctrl AS ( c.description, c.created_at, c.updated_at + c.search_vector FROM controls c INNER JOIN @@ -221,7 +222,8 @@ WITH ctrl AS ( c.name, c.description, c.created_at, - c.updated_at + c.updated_at, + c.search_vector FROM controls c INNER JOIN @@ -331,7 +333,8 @@ WITH ctrl AS ( c.name, c.description, c.created_at, - c.updated_at + c.updated_at, + c.search_vector FROM controls c LEFT JOIN @@ -472,14 +475,7 @@ func (c *Controls) CountByOrganizationID( q := ` WITH ctrl AS ( SELECT - c.id, - c.section_title, - c.framework_id, - c.tenant_id, - c.name, - c.description, - c.created_at, - c.updated_at + c.id FROM controls c INNER JOIN @@ -527,7 +523,8 @@ WITH ctrl AS ( c.name, c.description, c.created_at, - c.updated_at + c.updated_at, + c.search_vector FROM controls c INNER JOIN