mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
edit constraint (with recreate)
This commit is contained in:
@@ -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];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user