From c8ef33fd3b475d4e9728b8b151869c4ba38e5f77 Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Tue, 20 May 2025 23:45:22 +0400 Subject: [PATCH] Fix postgres index import --- 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);