fixed view redeploy

This commit is contained in:
Jan Prochazka
2024-11-01 08:34:40 +01:00
parent f9a562808d
commit 188ab4c483
3 changed files with 10 additions and 12 deletions

View File

@@ -548,13 +548,13 @@ export class AlterPlan {
if (this.opts.noDropTable && op.operationType == 'dropTable') return false;
if (this.opts.noDropTable && op.operationType == 'recreateTable') return false;
if (this.opts.noDropConstraint && op.operationType == 'dropConstraint') return false;
if (
this.opts.noDropSqlObject &&
op.operationType == 'dropSqlObject' &&
// allow to drop previously deleted SQL objects
!hasDeletedPrefix(op.oldObject.pureName, this.opts, this.opts.deletedSqlObjectPrefix)
)
return false;
// if (
// this.opts.noDropSqlObject &&
// op.operationType == 'dropSqlObject' &&
// // allow to drop previously deleted SQL objects
// !hasDeletedPrefix(op.oldObject.pureName, this.opts, this.opts.deletedSqlObjectPrefix)
// )
// return false;
return true;
});
}