We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35ee475 commit ed1d9a5Copy full SHA for ed1d9a5
src/utils/importSQL/postgres.js
@@ -48,7 +48,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
48
d.definition.dataType,
49
),
50
)?.name;
51
- if (!type && !dbToTypes[diagramDb][type])
+ if (!type && !dbToTypes[diagramDb][d.definition.dataType])
52
type = affinity[diagramDb][type];
53
field.type = type || d.definition.dataType;
54
0 commit comments