You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@mikro-orm/migrations

Package Overview
Dependencies
Maintainers
1
Versions
4155
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
7.0.2-dev.13
to
7.0.2-dev.14
+1
-0
JSMigrationGenerator.d.ts
import { MigrationGenerator } from './MigrationGenerator.js';
/** Generates migration files in CommonJS JavaScript format. */
export declare class JSMigrationGenerator extends MigrationGenerator {

@@ -3,0 +4,0 @@ /**

import { MigrationGenerator } from './MigrationGenerator.js';
/** Generates migration files in CommonJS JavaScript format. */
export class JSMigrationGenerator extends MigrationGenerator {

@@ -3,0 +4,0 @@ /**

import { type AnyEntity, type Configuration, type EntityData, type RawQueryFragment, type Transaction } from '@mikro-orm/core';
import type { AbstractSqlDriver, EntityManager, NativeQueryBuilder } from '@mikro-orm/sql';
/** A migration query: raw SQL string, a native query builder instance, or a `raw()` SQL fragment. */
export type Query = string | NativeQueryBuilder | RawQueryFragment;
/** Base class for SQL database migrations. Extend this class and implement `up()` (and optionally `down()`). */
export declare abstract class Migration {

@@ -5,0 +7,0 @@ #private;

@@ -0,1 +1,2 @@

/** Base class for SQL database migrations. Extend this class and implement `up()` (and optionally `down()`). */
export class Migration {

@@ -2,0 +3,0 @@ driver;

import { type IMigrationGenerator, type MaybePromise, type MigrationsOptions, type NamingStrategy } from '@mikro-orm/core';
import type { AbstractSqlDriver } from '@mikro-orm/sql';
/** Base class for generating migration source files from schema diffs. */
export declare abstract class MigrationGenerator implements IMigrationGenerator {

@@ -4,0 +5,0 @@ protected readonly driver: AbstractSqlDriver;

@@ -0,1 +1,2 @@

/** Base class for generating migration source files from schema diffs. */
export class MigrationGenerator {

@@ -2,0 +3,0 @@ driver;

import { type Configuration, type MigrationsOptions, type Transaction } from '@mikro-orm/core';
import type { AbstractSqlDriver } from '@mikro-orm/sql';
import type { Migration } from './Migration.js';
/** Executes individual migration files within optional transaction contexts. */
export declare class MigrationRunner {

@@ -5,0 +6,0 @@ #private;

import { Utils } from '@mikro-orm/core';
/** Executes individual migration files within optional transaction contexts. */
export class MigrationRunner {

@@ -3,0 +4,0 @@ driver;

import { type MigrationsOptions, type Transaction, type EntitySchema } from '@mikro-orm/core';
import { type AbstractSqlDriver } from '@mikro-orm/sql';
import type { MigrationRow } from './typings.js';
/** Tracks executed migrations in a database table. */
export declare class MigrationStorage {

@@ -5,0 +6,0 @@ #private;

import { defineEntity, p } from '@mikro-orm/core';
import { DatabaseTable, } from '@mikro-orm/sql';
/** Tracks executed migrations in a database table. */
export class MigrationStorage {

@@ -4,0 +5,0 @@ driver;

@@ -6,2 +6,3 @@ import { type IMigrationGenerator, type IMigrationRunner, type IMigratorStorage, type MigrateOptions, type MigrationInfo, type MikroORM } from '@mikro-orm/core';

import type { MigrationResult } from './typings.js';
/** Manages SQL database migrations: creation, execution, and rollback of schema changes. */
export declare class Migrator extends AbstractMigrator<AbstractSqlDriver> {

@@ -8,0 +9,0 @@ #private;

@@ -8,2 +8,3 @@ import { t, Type, UnknownType, } from '@mikro-orm/core';

import { JSMigrationGenerator } from './JSMigrationGenerator.js';
/** Manages SQL database migrations: creation, execution, and rollback of schema changes. */
export class Migrator extends AbstractMigrator {

@@ -10,0 +11,0 @@ #schemaGenerator;

+3
-3
{
"name": "@mikro-orm/migrations",
"version": "7.0.2-dev.13",
"version": "7.0.2-dev.14",
"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.",

@@ -50,3 +50,3 @@ "keywords": [

"dependencies": {
"@mikro-orm/sql": "7.0.2-dev.13"
"@mikro-orm/sql": "7.0.2-dev.14"
},

@@ -57,3 +57,3 @@ "devDependencies": {

"peerDependencies": {
"@mikro-orm/core": "7.0.2-dev.13"
"@mikro-orm/core": "7.0.2-dev.14"
},

@@ -60,0 +60,0 @@ "engines": {

import { MigrationGenerator } from './MigrationGenerator.js';
/** Generates migration files in TypeScript format. */
export declare class TSMigrationGenerator extends MigrationGenerator {

@@ -3,0 +4,0 @@ /**

import { MigrationGenerator } from './MigrationGenerator.js';
/** Generates migration files in TypeScript format. */
export class TSMigrationGenerator extends MigrationGenerator {

@@ -3,0 +4,0 @@ /**