@mikro-orm/postgresql 7.0.0-dev.70 → 7.0.0-dev.72

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.
@@ -350,17 +350,15 @@ export class PostgreSqlPlatform extends AbstractSqlPlatform {
350
350
  getIndexName(tableName, columns, type) {
351
351
  const indexName = super.getIndexName(tableName, columns, type);
352
352
  if (indexName.length > 63) {
353
- const hashAlgorithm = this.config.get('hashAlgorithm');
354
353
  const suffix = type === 'primary' ? 'pkey' : type;
355
- return `${indexName.substring(0, 55 - type.length)}_${Utils.hash(indexName, 5, hashAlgorithm)}_${suffix}`;
354
+ return `${indexName.substring(0, 55 - type.length)}_${Utils.hash(indexName, 5)}_${suffix}`;
356
355
  }
357
356
  return indexName;
358
357
  }
359
358
  getDefaultPrimaryName(tableName, columns) {
360
359
  const indexName = `${tableName}_pkey`;
361
360
  if (indexName.length > 63) {
362
- const hashAlgorithm = this.config.get('hashAlgorithm');
363
- return `${indexName.substring(0, 55 - 'pkey'.length)}_${Utils.hash(indexName, 5, hashAlgorithm)}_pkey`;
361
+ return `${indexName.substring(0, 55 - 'pkey'.length)}_${Utils.hash(indexName, 5)}_pkey`;
364
362
  }
365
363
  return indexName;
366
364
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/postgresql",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.70",
4
+ "version": "7.0.0-dev.72",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/knex": "7.0.0-dev.70",
53
+ "@mikro-orm/knex": "7.0.0-dev.72",
54
54
  "pg": "8.16.3",
55
55
  "pg-cursor": "2.15.3",
56
56
  "postgres-array": "3.0.4",
@@ -62,7 +62,7 @@
62
62
  "kysely": "0.28.8"
63
63
  },
64
64
  "peerDependencies": {
65
- "@mikro-orm/core": "7.0.0-dev.70",
65
+ "@mikro-orm/core": "7.0.0-dev.72",
66
66
  "kysely": "*"
67
67
  }
68
68
  }