Merge branch 'main' into next

This commit is contained in:
GitHub Actions Bot 2024-10-09 06:59:00 +00:00
commit 26b99964fd

View File

@ -55,7 +55,11 @@ export default abstract class QueryInterface {
removeSql = `DROP VIEW IF EXISTS ${view.name}`;
}
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);