From f682abdafeae54c3abe72c1a6de9d0c88b80f50f Mon Sep 17 00:00:00 2001 From: 1ilit Date: Mon, 8 Jul 2024 03:33:40 +0300 Subject: [PATCH] Fix import index for postgres --- src/utils/importSQL/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/importSQL/postgres.js b/src/utils/importSQL/postgres.js index be183d8..b6b28dc 100644 --- a/src/utils/importSQL/postgres.js +++ b/src/utils/importSQL/postgres.js @@ -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) => {