mysqlsyncr 1.0.76 → 1.0.78
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/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/differences.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3299,7 +3299,8 @@ var findDifferences = function findDifferences(expected, current) {
|
|
|
3299
3299
|
// tinyint(1) is the default for tinyint and used on older versions of mysql
|
|
3300
3300
|
if (field.Type == 'varchar' && currentField.Type.startsWith('varchar(')) return 0; // continue
|
|
3301
3301
|
// varchar(255) is the default for varchar and used on older versions of mysql
|
|
3302
|
-
|
|
3302
|
+
if (field.Type == 'bigint' && currentField.Type.startsWith('bigint(')) return 0; // continue
|
|
3303
|
+
// bigint(20) is the default for bigint and used on older versions of mysql
|
|
3303
3304
|
differences.push({
|
|
3304
3305
|
type: 'mismatched_field',
|
|
3305
3306
|
info: "Type",
|
package/dist/index.js
CHANGED
|
@@ -3296,7 +3296,8 @@ var findDifferences = function findDifferences(expected, current) {
|
|
|
3296
3296
|
// tinyint(1) is the default for tinyint and used on older versions of mysql
|
|
3297
3297
|
if (field.Type == 'varchar' && currentField.Type.startsWith('varchar(')) return 0; // continue
|
|
3298
3298
|
// varchar(255) is the default for varchar and used on older versions of mysql
|
|
3299
|
-
|
|
3299
|
+
if (field.Type == 'bigint' && currentField.Type.startsWith('bigint(')) return 0; // continue
|
|
3300
|
+
// bigint(20) is the default for bigint and used on older versions of mysql
|
|
3300
3301
|
differences.push({
|
|
3301
3302
|
type: 'mismatched_field',
|
|
3302
3303
|
info: "Type",
|
package/package.json
CHANGED
package/src/differences.js
CHANGED
|
@@ -74,7 +74,7 @@ export const findDifferences = (expected, current) => {
|
|
|
74
74
|
if(field.Type == 'smallint' && currentField.Type.startsWith('smallint(')) continue; // smallint(6) is the default for smallint and used on older versions of mysql
|
|
75
75
|
if(field.Type == 'tinyint' && currentField.Type.startsWith('tinyint(')) continue; // tinyint(1) is the default for tinyint and used on older versions of mysql
|
|
76
76
|
if(field.Type == 'varchar' && currentField.Type.startsWith('varchar(')) continue; // varchar(255) is the default for varchar and used on older versions of mysql
|
|
77
|
-
|
|
77
|
+
if(field.Type == 'bigint' && currentField.Type.startsWith('bigint(')) continue; // bigint(20) is the default for bigint and used on older versions of mysql
|
|
78
78
|
differences.push({ type: 'mismatched_field', info: "Type", tableName, field, currentField });
|
|
79
79
|
}
|
|
80
80
|
}
|