@strapi/database 4.1.1 → 4.2.0-alpha.O
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,7 +41,12 @@ class MysqlDialect extends Dialect {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
async startSchemaUpdate() {
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
await this.db.connection.raw(`set foreign_key_checks = 0;`);
|
|
46
|
+
await this.db.connection.raw(`set session sql_require_primary_key = 0;`);
|
|
47
|
+
} catch (err) {
|
|
48
|
+
// Ignore error due to lack of session permissions
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
async endSchemaUpdate() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/database",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-alpha.O",
|
|
4
4
|
"description": "Strapi's database layer",
|
|
5
5
|
"homepage": "https://strapi.io",
|
|
6
6
|
"bugs": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"node": ">=12.22.0 <=16.x.x",
|
|
43
43
|
"npm": ">=6.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0e1f1ae08565a5f2427753582f37645a43c00cb2"
|
|
46
46
|
}
|