mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-21 01:07:24 +08:00
Fix import index for postgres
This commit is contained in:
@@ -218,7 +218,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
|
|||||||
index.unique = false;
|
index.unique = false;
|
||||||
if (e.index_type === "unique") index.unique = true;
|
if (e.index_type === "unique") index.unique = true;
|
||||||
index.fields = [];
|
index.fields = [];
|
||||||
e.index_columns.forEach((f) => index.fields.push(f.column));
|
e.index_columns.forEach((f) => index.fields.push(f.column.expr.value));
|
||||||
|
|
||||||
let found = -1;
|
let found = -1;
|
||||||
tables.forEach((t, i) => {
|
tables.forEach((t, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user