Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@mikro-orm/migrations

Package Overview
Dependencies
Maintainers
1
Versions
4087
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/migrations - npm Package Compare versions

Comparing version
6.6.8
to
6.6.9-dev.0
+5
-1
Migrator.js

@@ -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"
}
}