Fix pg type import (#380)

This commit is contained in:
1ilit 2025-03-29 17:22:02 +04:00 committed by GitHub
parent 35ee475e0d
commit ed1d9a5b85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;