mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Fix pg type import (#380)
This commit is contained in:
parent
35ee475e0d
commit
ed1d9a5b85
@ -48,7 +48,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
|
|||||||
d.definition.dataType,
|
d.definition.dataType,
|
||||||
),
|
),
|
||||||
)?.name;
|
)?.name;
|
||||||
if (!type && !dbToTypes[diagramDb][type])
|
if (!type && !dbToTypes[diagramDb][d.definition.dataType])
|
||||||
type = affinity[diagramDb][type];
|
type = affinity[diagramDb][type];
|
||||||
field.type = type || d.definition.dataType;
|
field.type = type || d.definition.dataType;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user