@mikro-orm/core 6.2.10-dev.77 → 6.2.10-dev.79
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.
|
@@ -1147,7 +1147,8 @@ class MetadataDiscovery {
|
|
|
1147
1147
|
&& !SCALAR_TYPES.includes(prop.type)
|
|
1148
1148
|
// or it might be inferred via ts-morph to some generic type alias
|
|
1149
1149
|
&& !prop.type.match(/[<>:"';{}]/)) {
|
|
1150
|
-
prop.
|
|
1150
|
+
const type = prop.length != null && !prop.type.endsWith(`(${prop.length})`) ? `${prop.type}(${prop.length})` : prop.type;
|
|
1151
|
+
prop.columnTypes = [type];
|
|
1151
1152
|
}
|
|
1152
1153
|
else {
|
|
1153
1154
|
prop.columnTypes = [mappedType.getColumnType(prop, this.platform)];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.2.10-dev.
|
|
3
|
+
"version": "6.2.10-dev.79",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.2.0",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.2.10-dev.
|
|
67
|
+
"mikro-orm": "6.2.10-dev.79",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|