@itrocks/mysql-to-schema 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/cjs/to-type.js +2 -0
  2. package/package.json +2 -2
package/cjs/to-type.js CHANGED
@@ -149,6 +149,8 @@ class ToType {
149
149
  type.length = 64;
150
150
  break;
151
151
  case 'blob':
152
+ if (type.variableLength && type.length !== undefined)
153
+ break;
152
154
  case 'string':
153
155
  if (type.length === undefined)
154
156
  Object.assign(type, { length: 255, variableLength: true });
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "description": "Extracts a MySQL table structure and converts it into a table schema",
11
11
  "devDependencies": {
12
- "typescript": "^6.0"
12
+ "typescript": "^7.0"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=24"
@@ -41,5 +41,5 @@
41
41
  "scripts": {
42
42
  "build": "tsc"
43
43
  },
44
- "version": "0.1.0"
44
+ "version": "0.1.2"
45
45
  }