mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:26:21 +00:00
Merge branch 'main' into next
This commit is contained in:
commit
26b99964fd
@ -55,7 +55,11 @@ export default abstract class QueryInterface {
|
|||||||
removeSql = `DROP VIEW IF EXISTS ${view.name}`;
|
removeSql = `DROP VIEW IF EXISTS ${view.name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
await this.db.sequelize.query(removeSql, { transaction: options.transaction });
|
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);
|
await this.db.sequelize.getQueryInterface().dropAllTables(options);
|
||||||
|
Loading…
Reference in New Issue
Block a user