fixed double drop constraint

This commit is contained in:
Jan Prochazka
2025-12-08 13:05:38 +01:00
parent b3130225b5
commit 851d2e9151
2 changed files with 8 additions and 1 deletions

View File

@@ -337,7 +337,13 @@ export class AlterPlan {
return opRes;
}),
op,
];
].filter(op => {
// filter duplicated drops
const existingDrop = this.operations.find(
o => o.operationType == 'dropConstraint' && o.oldObject === op['oldObject']
);
return existingDrop == null;
});
return res;
}