mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-23 09:49:17 +00:00
Fix postgres index import (#459)
This commit is contained in:
parent
8f9aae14ca
commit
24712230a7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user