@mikro-orm/mssql 7.0.17-dev.7 → 7.0.17-dev.9
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/MsSqlSchemaHelper.js +11 -13
- package/package.json +3 -3
package/MsSqlSchemaHelper.js
CHANGED
|
@@ -501,19 +501,17 @@ export class MsSqlSchemaHelper extends SchemaHelper {
|
|
|
501
501
|
* Build the column list for a MSSQL index.
|
|
502
502
|
*/
|
|
503
503
|
getIndexColumns(index) {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
return index.columnNames.map(c => this.quote(c)).join(', ');
|
|
504
|
+
return index.columnNames
|
|
505
|
+
.map(name => {
|
|
506
|
+
const col = index.columns?.find(c => c.name === name);
|
|
507
|
+
let colDef = this.quote(name);
|
|
508
|
+
// MSSQL supports sort order
|
|
509
|
+
if (col?.sort) {
|
|
510
|
+
colDef += ` ${col.sort}`;
|
|
511
|
+
}
|
|
512
|
+
return colDef;
|
|
513
|
+
})
|
|
514
|
+
.join(', ');
|
|
517
515
|
}
|
|
518
516
|
/**
|
|
519
517
|
* Get MSSQL-specific index WITH options like fill factor.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mssql",
|
|
3
|
-
"version": "7.0.17-dev.
|
|
3
|
+
"version": "7.0.17-dev.9",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/sql": "7.0.17-dev.
|
|
50
|
+
"@mikro-orm/sql": "7.0.17-dev.9",
|
|
51
51
|
"kysely": "0.29.0",
|
|
52
52
|
"tarn": "3.0.2",
|
|
53
53
|
"tedious": "19.2.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@mikro-orm/core": "^7.0.16"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@mikro-orm/core": "7.0.17-dev.
|
|
60
|
+
"@mikro-orm/core": "7.0.17-dev.9"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">= 22.17.0"
|