mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-07-18 10:11:24 +00:00
Fix importing foreign keys from sqlite (#478)
This commit is contained in:
@@ -53,7 +53,7 @@ export function fromSQLite(ast, diagramDb = DB.GENERIC) {
|
||||
const endTable = tables.find((t) => t.name === endTableName);
|
||||
if (!endTable) return;
|
||||
|
||||
const endField = endTable.fields.findIndex((f) => f.name === endFieldName);
|
||||
const endField = endTable.fields.find((f) => f.name === endFieldName);
|
||||
if (!endField) return;
|
||||
|
||||
const startField = startTable.fields.find((f) => f.name === startFieldName);
|
||||
|
Reference in New Issue
Block a user