@mikro-orm/mssql 7.1.0-dev.41 → 7.1.0-dev.43

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.
@@ -620,19 +620,17 @@ export class MsSqlSchemaHelper extends SchemaHelper {
620
620
  * Build the column list for a MSSQL index.
621
621
  */
622
622
  getIndexColumns(index) {
623
- if (index.columns?.length) {
624
- return index.columns
625
- .map(col => {
626
- let colDef = this.quote(col.name);
627
- // MSSQL supports sort order
628
- if (col.sort) {
629
- colDef += ` ${col.sort}`;
630
- }
631
- return colDef;
632
- })
633
- .join(', ');
634
- }
635
- return index.columnNames.map(c => this.quote(c)).join(', ');
623
+ return index.columnNames
624
+ .map(name => {
625
+ const col = index.columns?.find(c => c.name === name);
626
+ let colDef = this.quote(name);
627
+ // MSSQL supports sort order
628
+ if (col?.sort) {
629
+ colDef += ` ${col.sort}`;
630
+ }
631
+ return colDef;
632
+ })
633
+ .join(', ');
636
634
  }
637
635
  /**
638
636
  * 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.1.0-dev.41",
3
+ "version": "7.1.0-dev.43",
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,17 +47,17 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "@mikro-orm/sql": "7.1.0-dev.41",
51
- "kysely": "0.29.0",
50
+ "@mikro-orm/sql": "7.1.0-dev.43",
51
+ "kysely": "0.29.2",
52
52
  "tarn": "3.0.2",
53
53
  "tedious": "19.2.1",
54
54
  "tsqlstring": "1.0.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@mikro-orm/core": "^7.0.16"
57
+ "@mikro-orm/core": "^7.0.17"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.1.0-dev.41"
60
+ "@mikro-orm/core": "7.1.0-dev.43"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">= 22.17.0"