mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
alter table
This commit is contained in:
@@ -248,10 +248,13 @@ export class AlterPlan {
|
||||
|
||||
if (op.operationType == 'dropTable') {
|
||||
return [
|
||||
...(op.oldObject.dependencies || []).map(oldObject => ({
|
||||
operationType: 'dropConstraint',
|
||||
oldObject,
|
||||
})),
|
||||
...(op.oldObject.dependencies || []).map(oldObject => {
|
||||
const opRes: AlterOperation = {
|
||||
operationType: 'dropConstraint',
|
||||
oldObject,
|
||||
};
|
||||
return opRes;
|
||||
}),
|
||||
op,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user