diff --git a/packages/core/database/src/query-interface/query-interface.ts b/packages/core/database/src/query-interface/query-interface.ts index f042530fd4..c7d484ccb7 100644 --- a/packages/core/database/src/query-interface/query-interface.ts +++ b/packages/core/database/src/query-interface/query-interface.ts @@ -55,7 +55,11 @@ export default abstract class QueryInterface { removeSql = `DROP VIEW IF EXISTS ${view.name}`; } - await this.db.sequelize.query(removeSql, { transaction: options.transaction }); + try { + await this.db.sequelize.query(removeSql, { transaction: options.transaction }); + } catch (e) { + console.log(`can not drop view ${view.name}, ${e.message}`); + } } await this.db.sequelize.getQueryInterface().dropAllTables(options);