mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 14:06:00 +00:00
create column test
This commit is contained in:
@@ -158,6 +158,12 @@ export class AlterPlan {
|
||||
newName,
|
||||
});
|
||||
}
|
||||
|
||||
run(processor: AlterProcessor) {
|
||||
for (const op of this.operations) {
|
||||
runAlterOperation(op, processor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function runAlterOperation(op: AlterOperation, processor: AlterProcessor) {
|
||||
|
||||
@@ -281,4 +281,7 @@ export function getAlterTableScript(
|
||||
driver: EngineDriver
|
||||
): string {
|
||||
const plan = createAlterTablePlan(oldTable, newTable, opts, db);
|
||||
const dmp = driver.createDumper();
|
||||
plan.run(dmp);
|
||||
return dmp.s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user