mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
chore: not throw error when drop view without permission (#5377)
This commit is contained in:
parent
1fc2f388e3
commit
15eb170f41
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user