File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -282,11 +282,13 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
282
282
) {
283
283
const relationship = { } ;
284
284
const startTable = e . table [ 0 ] . table ;
285
- const startField = expr . create_definitions . definition [ 0 ] . column ;
285
+ const startField =
286
+ expr . create_definitions . definition [ 0 ] . column . expr . value ;
286
287
const endTable =
287
288
expr . create_definitions . reference_definition . table [ 0 ] . table ;
288
289
const endField =
289
- expr . create_definitions . reference_definition . definition [ 0 ] . column ;
290
+ expr . create_definitions . reference_definition . definition [ 0 ] . column
291
+ . expr . value ;
290
292
let updateConstraint = "No action" ;
291
293
let deleteConstraint = "No action" ;
292
294
expr . create_definitions . reference_definition . on_action . forEach (
You can’t perform that action at this time.
0 commit comments