Fix import index for postgres

This commit is contained in:
1ilit 2024-07-08 03:33:40 +03:00
parent 52455a75d0
commit f682abdafe

View File

@ -218,7 +218,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
index.unique = false;
if (e.index_type === "unique") index.unique = true;
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;
tables.forEach((t, i) => {