From ed1d9a5b8570bc7ed3559bce4a99115f05abfcfe Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Sat, 29 Mar 2025 17:22:02 +0400 Subject: [PATCH] Fix pg type import (#380) --- src/utils/importSQL/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/importSQL/postgres.js b/src/utils/importSQL/postgres.js index 4f01e6a..0dd07c9 100644 --- a/src/utils/importSQL/postgres.js +++ b/src/utils/importSQL/postgres.js @@ -48,7 +48,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) { d.definition.dataType, ), )?.name; - if (!type && !dbToTypes[diagramDb][type]) + if (!type && !dbToTypes[diagramDb][d.definition.dataType]) type = affinity[diagramDb][type]; field.type = type || d.definition.dataType;