@mikro-orm/sql 7.2.2-dev.18 → 7.2.2-dev.19

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.
@@ -419,7 +419,11 @@ export class PostgreSqlSchemaHelper extends SchemaHelper {
419
419
  if ((col.udt_name === 'geometry' || col.udt_name === 'geography') && col.format_type) {
420
420
  type = col.format_type;
421
421
  }
422
- if (type === 'vector' && col.length == null && col.custom_length != null && col.custom_length !== -1) {
422
+ // pgvector stores the dimension in atttypmod for all three of its vector types
423
+ if (['vector', 'halfvec', 'sparsevec'].includes(type) &&
424
+ col.length == null &&
425
+ col.custom_length != null &&
426
+ col.custom_length !== -1) {
423
427
  col.length = col.custom_length;
424
428
  }
425
429
  if (col.length != null && !type.endsWith(`(${col.length})`) && !['text', 'date'].includes(type)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.2.2-dev.18",
3
+ "version": "7.2.2-dev.19",
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",
@@ -53,7 +53,7 @@
53
53
  "@mikro-orm/core": "^7.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.2.2-dev.18"
56
+ "@mikro-orm/core": "7.2.2-dev.19"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"