From d5e88445210f25f10c1e2b703e2df4526fd19659 Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 22 Feb 2024 16:33:19 +0100 Subject: [PATCH] Fix referential_constraints health check (#4139) --- .../workspace-health/services/database-structure.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-server/src/workspace/workspace-health/services/database-structure.service.ts b/packages/twenty-server/src/workspace/workspace-health/services/database-structure.service.ts index dc9c88fc0..0ce9aea71 100644 --- a/packages/twenty-server/src/workspace/workspace-health/services/database-structure.service.ts +++ b/packages/twenty-server/src/workspace/workspace-health/services/database-structure.service.ts @@ -114,6 +114,7 @@ export class DatabaseStructureService { LEFT JOIN information_schema.referential_constraints AS rc ON rc.constraint_name = fk.constraint_name + AND rc.constraint_schema = '${schemaName}' WHERE c.table_schema = '${schemaName}' AND c.table_name = '${tableName}';