The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix referential_constraints health check (#4139)
Weikod5e88445210f
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.tsindex dc9c88fc027..0ce9aea71af 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 JOINinformation_schema.referential_constraints AS rcON rc.constraint_name = fk.constraint_name+ AND rc.constraint_schema = '${schemaName}'WHEREc.table_schema = '${schemaName}'AND c.table_name = '${tableName}';