Fix postgres index import (#459)

This commit is contained in:
1ilit
2025-05-20 23:49:47 +04:00
committed by GitHub
parent 8f9aae14ca
commit 24712230a7

View File

@@ -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);