Skip to content

Commit ed1d9a5

Browse files
authored
Fix pg type import (#380)
1 parent 35ee475 commit ed1d9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/importSQL/postgres.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
4848
d.definition.dataType,
4949
),
5050
)?.name;
51-
if (!type && !dbToTypes[diagramDb][type])
51+
if (!type && !dbToTypes[diagramDb][d.definition.dataType])
5252
type = affinity[diagramDb][type];
5353
field.type = type || d.definition.dataType;
5454

0 commit comments

Comments
 (0)