@mikro-orm/knex 6.2.10-dev.10 → 6.2.10-dev.12
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/package.json +2 -2
- package/schema/DatabaseTable.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.2.10-dev.
|
|
3
|
+
"version": "6.2.10-dev.12",
|
|
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,7 +66,7 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.2.9"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.2.10-dev.
|
|
69
|
+
"@mikro-orm/core": "6.2.10-dev.12",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|
package/schema/DatabaseTable.js
CHANGED
|
@@ -601,8 +601,7 @@ class DatabaseTable {
|
|
|
601
601
|
// If this column is using an enum.
|
|
602
602
|
if (column.enumItems?.length) {
|
|
603
603
|
// We will create a new enum name for this type and set it as the property type as well.
|
|
604
|
-
|
|
605
|
-
return namingStrategy.getClassName(this.name + '_' + column.name, '_');
|
|
604
|
+
return namingStrategy.getEnumClassName(column.name, this.name, this.schema);
|
|
606
605
|
}
|
|
607
606
|
return column.mappedType?.runtimeType ?? 'unknown';
|
|
608
607
|
}
|