mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-15 06:50:29 +00:00
Fix pg type import (#380)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user