@mikro-orm/knex 6.0.6 → 6.0.7-dev.0

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/index.mjs CHANGED
@@ -99,6 +99,7 @@ export const Hydrator = mod.Hydrator;
99
99
  export const IdentityMap = mod.IdentityMap;
100
100
  export const Index = mod.Index;
101
101
  export const IntegerType = mod.IntegerType;
102
+ export const IntervalType = mod.IntervalType;
102
103
  export const InvalidFieldNameException = mod.InvalidFieldNameException;
103
104
  export const IsolationLevel = mod.IsolationLevel;
104
105
  export const JoinType = mod.JoinType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.0.6",
3
+ "version": "6.0.7-dev.0",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.0.6"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "^6.0.0"
69
+ "@mikro-orm/core": "6.0.7-dev.0"
70
70
  }
71
71
  }
@@ -70,7 +70,7 @@ class DatabaseTable {
70
70
  prop.length = undefined;
71
71
  }
72
72
  }
73
- if (mappedType instanceof core_1.DateTimeType) {
73
+ if (mappedType instanceof core_1.DateTimeType || mappedType instanceof core_1.IntervalType) {
74
74
  const match = prop.columnTypes[idx].match(/\w+\((\d+)\)/);
75
75
  if (match) {
76
76
  prop.length ??= +match[1];