@mikro-orm/sql 7.1.0-dev.17 → 7.1.0-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.
@@ -875,7 +875,8 @@ export class PostgreSqlSchemaHelper extends SchemaHelper {
875
875
  if (index.primary || (index.unique && index.constraint)) {
876
876
  return `alter table ${this.quote(table)} drop constraint ${this.quote(oldIndexName)}`;
877
877
  }
878
- return `drop index ${this.quote(oldIndexName)}`;
878
+ const [schemaName] = this.splitTableName(table);
879
+ return `drop index ${this.quote(schemaName, oldIndexName)}`;
879
880
  }
880
881
  /**
881
882
  * Build the column list for a PostgreSQL index.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.1.0-dev.17",
3
+ "version": "7.1.0-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",
@@ -50,10 +50,10 @@
50
50
  "kysely": "0.28.16"
51
51
  },
52
52
  "devDependencies": {
53
- "@mikro-orm/core": "^7.0.11"
53
+ "@mikro-orm/core": "^7.0.12"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.1.0-dev.17"
56
+ "@mikro-orm/core": "7.1.0-dev.19"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"