@automattic/vip 3.9.5 → 3.9.6
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.
- package/dist/lib/validations/sql.js +11 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -312,6 +312,17 @@ const checks = {
|
|
|
312
312
|
message: 'ENGINE != InnoDB',
|
|
313
313
|
excerpt: "'ENGINE=InnoDB' should be present (case-insensitive) for all tables",
|
|
314
314
|
recommendation: "Ensure your application works with InnoDB and update your SQL dump to include only 'ENGINE=InnoDB' engine definitions in 'CREATE TABLE' statements. " + "We suggest you search for all 'ENGINE=X' entries and replace them with 'ENGINE=InnoDB'!"
|
|
315
|
+
},
|
|
316
|
+
autoIncrement: {
|
|
317
|
+
matcher: /\s(NOT NULL AUTO_INCREMENT,)/i,
|
|
318
|
+
matchHandler: (_lineNumber, results) => ({
|
|
319
|
+
text: results[1]
|
|
320
|
+
}),
|
|
321
|
+
outputFormatter: requiredCheckFormatter,
|
|
322
|
+
results: [],
|
|
323
|
+
message: 'AUTO_INCREMENT attribute',
|
|
324
|
+
excerpt: "'AUTO_INCREMENT attribute' should be present (case-insensitive) for all CREATE TABLE statements",
|
|
325
|
+
recommendation: 'Check import settings to include AUTO_INCREMENT attribute in all the CREATE TABLE statements'
|
|
315
326
|
}
|
|
316
327
|
};
|
|
317
328
|
const DEV_ENV_SPECIFIC_CHECKS = ['useStatement', 'siteHomeUrlLando'];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/vip",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.6",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@automattic/vip",
|
|
9
|
-
"version": "3.9.
|
|
9
|
+
"version": "3.9.6",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|