deploy DB WIP

This commit is contained in:
Jan Prochazka
2021-09-30 15:21:13 +02:00
parent 425bed050b
commit e653b793d8
6 changed files with 78 additions and 10 deletions

View File

@@ -384,7 +384,7 @@ export class AlterPlan {
const res = [];
const recreates = {};
for (const op of this.operations) {
if (op.operationType == 'recreateTable') {
if (op.operationType == 'recreateTable' && op.table) {
const existingRecreate = recreates[`${op.table.schemaName}||${op.table.pureName}`];
if (existingRecreate) {
existingRecreate.operations.push(...op.operations);