mysqlsyncr 1.0.78 → 1.0.80

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 CHANGED
@@ -3291,7 +3291,7 @@ var findDifferences = function findDifferences(expected, current) {
3291
3291
  });
3292
3292
  }
3293
3293
  if (field.Type !== currentField.Type) {
3294
- if (field.Type == 'int' && currentField.Type == 'int(11)') return 0; // continue
3294
+ if (field.Type == 'int' && currentField.Type.startsWith('int(')) return 0; // continue
3295
3295
  // int(11) is the default for int and used on older versions of mysql
3296
3296
  if (field.Type == 'smallint' && currentField.Type.startsWith('smallint(')) return 0; // continue
3297
3297
  // smallint(6) is the default for smallint and used on older versions of mysql
package/dist/index.js CHANGED
@@ -3288,7 +3288,7 @@ var findDifferences = function findDifferences(expected, current) {
3288
3288
  });
3289
3289
  }
3290
3290
  if (field.Type !== currentField.Type) {
3291
- if (field.Type == 'int' && currentField.Type == 'int(11)') return 0; // continue
3291
+ if (field.Type == 'int' && currentField.Type.startsWith('int(')) return 0; // continue
3292
3292
  // int(11) is the default for int and used on older versions of mysql
3293
3293
  if (field.Type == 'smallint' && currentField.Type.startsWith('smallint(')) return 0; // continue
3294
3294
  // smallint(6) is the default for smallint and used on older versions of mysql
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysqlsyncr",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -70,7 +70,7 @@ export const findDifferences = (expected, current) => {
70
70
  differences.push({ type: 'mismatched_field', info: "Default", tableName, field, currentField });
71
71
  }
72
72
  if (field.Type !== currentField.Type) {
73
- if(field.Type == 'int' && currentField.Type == 'int(11)') continue; // int(11) is the default for int and used on older versions of mysql
73
+ if(field.Type == 'int' && currentField.Type.startsWith('int(')) continue; // int(11) is the default for int and used on older versions of mysql
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