@mikro-orm/postgresql 6.2.10-dev.99 → 6.3.1-dev.0

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.
@@ -271,8 +271,8 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
271
271
  if (position > 0) {
272
272
  suffix = ` after ${this.platform.quoteValue(items[position - 1])}`;
273
273
  }
274
- else if (items.length > 1 && oldItems.includes(items[1])) {
275
- suffix = ` before ${this.platform.quoteValue(items[1])}`;
274
+ else if (items.length > 1 && oldItems.length > 0) {
275
+ suffix = ` before ${this.platform.quoteValue(oldItems[0])}`;
276
276
  }
277
277
  }
278
278
  return `alter type ${this.platform.quoteIdentifier(name)} add value if not exists ${this.platform.quoteValue(value)}${suffix}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/postgresql",
3
- "version": "6.2.10-dev.99",
3
+ "version": "6.3.1-dev.0",
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",
@@ -58,16 +58,16 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.2.10-dev.99",
61
+ "@mikro-orm/knex": "6.3.1-dev.0",
62
62
  "pg": "8.12.0",
63
63
  "postgres-array": "3.0.2",
64
64
  "postgres-date": "2.1.0",
65
65
  "postgres-interval": "4.0.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@mikro-orm/core": "^6.2.9"
68
+ "@mikro-orm/core": "^6.3.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "@mikro-orm/core": "6.2.10-dev.99"
71
+ "@mikro-orm/core": "6.3.1-dev.0"
72
72
  }
73
73
  }