From 152f0bb0affe3e936c079e4742d6083931e1af47 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 20 May 2022 17:43:47 +0100 Subject: [PATCH] Opening connection for building schema. --- packages/server/src/integrations/postgres.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts index a3e49687b6..220f35dae5 100644 --- a/packages/server/src/integrations/postgres.ts +++ b/packages/server/src/integrations/postgres.ts @@ -208,6 +208,7 @@ module PostgresModule { */ async buildSchema(datasourceId: string, entities: Record) { let tableKeys: { [key: string]: string[] } = {} + await this.openConnection() try { const primaryKeysResponse = await this.client.query( this.PRIMARY_KEYS_SQL