mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 21:33:58 +00:00
fixed oracle index analyser
This commit is contained in:
@@ -40,7 +40,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _computeSingleObjectId() {
|
async _computeSingleObjectId() {
|
||||||
const { typeField, pureName } = this.singleObjectFilter;
|
const { typeField, pureName } = this.singleObjectFilter;
|
||||||
this.singleObjectId = `${typeField}:${pureName}`;
|
this.singleObjectId = `${typeField}:${pureName}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,8 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
indexes.rows.filter(
|
indexes.rows.filter(
|
||||||
idx =>
|
idx =>
|
||||||
idx.tableName == newTable.pureName &&
|
idx.tableName == newTable.pureName &&
|
||||||
!uniqueNames.rows.find(x => x.constraintName == idx.constraintName)
|
!uniqueNames.rows.find(x => x.constraintName == idx.constraintName) &&
|
||||||
|
!idx.constraintName.startsWith('SYS_C')
|
||||||
),
|
),
|
||||||
'constraintName'
|
'constraintName'
|
||||||
).map(idx => ({
|
).map(idx => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user