Fix missing search vector column
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -118,6 +118,7 @@ WITH ctrl AS (
|
|||||||
c.description,
|
c.description,
|
||||||
c.created_at,
|
c.created_at,
|
||||||
c.updated_at
|
c.updated_at
|
||||||
|
c.search_vector
|
||||||
FROM
|
FROM
|
||||||
controls c
|
controls c
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -221,7 +222,8 @@ WITH ctrl AS (
|
|||||||
c.name,
|
c.name,
|
||||||
c.description,
|
c.description,
|
||||||
c.created_at,
|
c.created_at,
|
||||||
c.updated_at
|
c.updated_at,
|
||||||
|
c.search_vector
|
||||||
FROM
|
FROM
|
||||||
controls c
|
controls c
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -331,7 +333,8 @@ WITH ctrl AS (
|
|||||||
c.name,
|
c.name,
|
||||||
c.description,
|
c.description,
|
||||||
c.created_at,
|
c.created_at,
|
||||||
c.updated_at
|
c.updated_at,
|
||||||
|
c.search_vector
|
||||||
FROM
|
FROM
|
||||||
controls c
|
controls c
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@@ -472,14 +475,7 @@ func (c *Controls) CountByOrganizationID(
|
|||||||
q := `
|
q := `
|
||||||
WITH ctrl AS (
|
WITH ctrl AS (
|
||||||
SELECT
|
SELECT
|
||||||
c.id,
|
c.id
|
||||||
c.section_title,
|
|
||||||
c.framework_id,
|
|
||||||
c.tenant_id,
|
|
||||||
c.name,
|
|
||||||
c.description,
|
|
||||||
c.created_at,
|
|
||||||
c.updated_at
|
|
||||||
FROM
|
FROM
|
||||||
controls c
|
controls c
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -527,7 +523,8 @@ WITH ctrl AS (
|
|||||||
c.name,
|
c.name,
|
||||||
c.description,
|
c.description,
|
||||||
c.created_at,
|
c.created_at,
|
||||||
c.updated_at
|
c.updated_at,
|
||||||
|
c.search_vector
|
||||||
FROM
|
FROM
|
||||||
controls c
|
controls c
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
|
|||||||
Reference in New Issue
Block a user