mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
fix: add try catch to pk check
This commit is contained in:
parent
92dde65e70
commit
6f73f6772e
@ -33,7 +33,11 @@ class MysqlDialect extends Dialect {
|
||||
}
|
||||
|
||||
async initialize() {
|
||||
await this.db.connection.raw(`set session sql_require_primary_key = 0;`);
|
||||
try {
|
||||
await this.db.connection.raw(`set session sql_require_primary_key = 0;`);
|
||||
} catch (err) {
|
||||
console.error({ err });
|
||||
}
|
||||
}
|
||||
|
||||
async startSchemaUpdate() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user