mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:57:53 +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}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
await this.db.sequelize.getQueryInterface().dropAllTables(options);
|
||||||
|
Loading…
Reference in New Issue
Block a user