mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 05:03:57 +00:00
fix: group indexes for firebird
This commit is contained in:
@@ -86,18 +86,16 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
],
|
],
|
||||||
})) ?? [];
|
})) ?? [];
|
||||||
|
|
||||||
const indexes =
|
const indexesGrouped = _.groupBy(indexesResults.rows, 'constraintName');
|
||||||
indexesResults.rows?.map(index => ({
|
const indexes = Object.values(indexesGrouped).map(indexGroup => ({
|
||||||
pureName: index.pureName,
|
pureName: indexGroup[0].pureName,
|
||||||
constraintName: index.constraintName,
|
constraintName: indexGroup[0].constraintName,
|
||||||
constraintType: index.constraintType,
|
constraintType: indexGroup[0].constraintType,
|
||||||
columns: [
|
columns: indexGroup.map(index => ({
|
||||||
{
|
columnName: index.columnName,
|
||||||
columnName: index.columnName,
|
isDescending: index.isDescending,
|
||||||
isDescending: index.isDescending,
|
})),
|
||||||
},
|
}));
|
||||||
],
|
|
||||||
})) ?? [];
|
|
||||||
|
|
||||||
const procedures =
|
const procedures =
|
||||||
proceduresResults.rows?.map(proc => ({
|
proceduresResults.rows?.map(proc => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user