From a888d9a273c35db22a3ef94af729cc006446c3ad Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Mon, 20 Jun 2022 18:08:30 +0100 Subject: [PATCH] Added external types to ds+ schemas --- packages/server/src/integrations/mysql.ts | 1 + packages/server/src/integrations/postgres.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index 7a06592ef7..287817ef27 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -232,6 +232,7 @@ module MySQLModule { autocolumn: isAuto, constraints, ...convertSqlType(column.Type), + externalType: column.Type, } } if (!tables[tableName]) { diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts index f0c5911476..0ac55a9cd0 100644 --- a/packages/server/src/integrations/postgres.ts +++ b/packages/server/src/integrations/postgres.ts @@ -271,6 +271,7 @@ module PostgresModule { autocolumn: isAuto, name: columnName, ...convertSqlType(column.data_type), + externalType: column.data_type, } }