edit constraint (with recreate)

This commit is contained in:
Jan Prochazka
2021-09-12 18:49:08 +02:00
parent 624ada2873
commit 3760217ff0
2 changed files with 28 additions and 1 deletions

View File

@@ -259,6 +259,18 @@ export class AlterPlan {
];
}
if (op.operationType == 'changeConstraint') {
const opDrop: AlterOperation = {
operationType: 'dropConstraint',
oldObject: op.oldObject,
};
const opCreate: AlterOperation = {
operationType: 'createConstraint',
newObject: op.newObject,
};
return [opDrop, opCreate];
}
return [op];
});