@mikro-orm/migrations
Advanced tools
+5
-1
@@ -356,3 +356,7 @@ "use strict"; | ||
| } | ||
| if (result.length > 0 && this.options.snapshot) { | ||
| // Only update the snapshot after `down` — after reverting, the DB state | ||
| // diverges from what was stored during `create`, so we need to refresh it. | ||
| // For `up`, the snapshot is already up to date (written during `create`), | ||
| // and writing it would break read-only production environments (GH #7232). | ||
| if (method === 'down' && result.length > 0 && this.options.snapshot) { | ||
| const schema = await knex_1.DatabaseSchema.create(this.em.getConnection(), this.em.getPlatform(), this.config); | ||
@@ -359,0 +363,0 @@ await this.storeCurrentSchema(schema); |
+3
-3
| { | ||
| "name": "@mikro-orm/migrations", | ||
| "version": "6.6.8", | ||
| "version": "6.6.9-dev.0", | ||
| "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.", | ||
@@ -61,3 +61,3 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@mikro-orm/knex": "6.6.8", | ||
| "@mikro-orm/knex": "6.6.9-dev.0", | ||
| "fs-extra": "11.3.3", | ||
@@ -70,4 +70,4 @@ "umzug": "3.8.2" | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "^6.0.0" | ||
| "@mikro-orm/core": "6.6.9-dev.0" | ||
| } | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
56246
0.67%960
0.42%1
Infinity%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated