mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix problem with diff analysing after drop object
This commit is contained in:
@@ -164,6 +164,11 @@ export class DatabaseAnalyser<TClient = any> {
|
|||||||
|
|
||||||
const res = {};
|
const res = {};
|
||||||
for (const field of STRUCTURE_FIELDS) {
|
for (const field of STRUCTURE_FIELDS) {
|
||||||
|
const isAll = this.modifications.some(x => x.action == 'all' && x.objectTypeField == field);
|
||||||
|
if (isAll) {
|
||||||
|
res[field] = newlyAnalysed[field] || [];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const removedIds = this.modifications
|
const removedIds = this.modifications
|
||||||
.filter(x => x.action == 'remove' && x.objectTypeField == field)
|
.filter(x => x.action == 'remove' && x.objectTypeField == field)
|
||||||
.map(x => x.objectId);
|
.map(x => x.objectId);
|
||||||
|
|||||||
Reference in New Issue
Block a user