From 24712230a7d17ae56d46ddf719023372a18a145a Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Tue, 20 May 2025 23:49:47 +0400 Subject: [PATCH] Fix postgres index import (#459) --- 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 d99572a..b992dea 100644 --- a/src/utils/importSQL/postgres.js +++ b/src/utils/importSQL/postgres.js @@ -234,7 +234,7 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) { const index = { name: e.index, unique: e.index_type === "unique", - fields: e.index_columns.map((f) => f.column), + fields: e.index_columns.map((f) => f.column.expr.value), }; const table = tables.find((t) => t.name === e.table.table);