@mikro-orm/migrations 7.0.0-dev.94 → 7.0.0-dev.97

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.
package/Migration.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type Configuration, type RawQueryFragment, type Transaction } from '@mikro-orm/core';
2
- import type { AbstractSqlDriver, EntityManager, NativeQueryBuilder } from '@mikro-orm/knex';
2
+ import type { AbstractSqlDriver, EntityManager, NativeQueryBuilder } from '@mikro-orm/sql';
3
3
  export type Query = string | NativeQueryBuilder | RawQueryFragment;
4
4
  export declare abstract class Migration {
5
5
  protected readonly driver: AbstractSqlDriver;
@@ -1,5 +1,5 @@
1
1
  import { type IMigrationGenerator, type MaybePromise, type MigrationsOptions, type NamingStrategy } from '@mikro-orm/core';
2
- import type { AbstractSqlDriver } from '@mikro-orm/knex';
2
+ import type { AbstractSqlDriver } from '@mikro-orm/sql';
3
3
  export declare abstract class MigrationGenerator implements IMigrationGenerator {
4
4
  protected readonly driver: AbstractSqlDriver;
5
5
  protected readonly namingStrategy: NamingStrategy;
@@ -1,5 +1,5 @@
1
1
  import { type Configuration, type MigrationsOptions, type Transaction } from '@mikro-orm/core';
2
- import type { AbstractSqlDriver } from '@mikro-orm/knex';
2
+ import type { AbstractSqlDriver } from '@mikro-orm/sql';
3
3
  import type { Migration } from './Migration.js';
4
4
  export declare class MigrationRunner {
5
5
  protected readonly driver: AbstractSqlDriver;
@@ -1,5 +1,5 @@
1
1
  import type { MigrationsOptions, Transaction } from '@mikro-orm/core';
2
- import { type AbstractSqlDriver } from '@mikro-orm/knex';
2
+ import { type AbstractSqlDriver } from '@mikro-orm/sql';
3
3
  import type { MigrationParams, UmzugStorage } from 'umzug';
4
4
  import type { MigrationRow } from './typings.js';
5
5
  export declare class MigrationStorage implements UmzugStorage {
@@ -1,4 +1,4 @@
1
- import { DatabaseTable, } from '@mikro-orm/knex';
1
+ import { DatabaseTable, } from '@mikro-orm/sql';
2
2
  import { parse } from 'node:path';
3
3
  export class MigrationStorage {
4
4
  driver;
package/Migrator.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type MigrationParams, type RunnableMigration } from 'umzug';
2
2
  import { type Constructor, type IMigrator, type MaybePromise, type MigratorEvent, type MikroORM } from '@mikro-orm/core';
3
- import { DatabaseSchema, type EntityManager } from '@mikro-orm/knex';
3
+ import { DatabaseSchema, type EntityManager } from '@mikro-orm/sql';
4
4
  import type { Migration } from './Migration.js';
5
5
  import { MigrationStorage } from './MigrationStorage.js';
6
6
  import type { MigrateOptions, MigrationResult, MigrationRow, UmzugMigration } from './typings.js';
package/Migrator.js CHANGED
@@ -3,7 +3,7 @@ import { basename, join } from 'node:path';
3
3
  import { existsSync, writeFileSync } from 'node:fs';
4
4
  import { t, Type, UnknownType, Utils, } from '@mikro-orm/core';
5
5
  import { fs } from '@mikro-orm/core/fs-utils';
6
- import { DatabaseSchema, DatabaseTable, } from '@mikro-orm/knex';
6
+ import { DatabaseSchema, DatabaseTable, } from '@mikro-orm/sql';
7
7
  import { MigrationRunner } from './MigrationRunner.js';
8
8
  import { MigrationStorage } from './MigrationStorage.js';
9
9
  import { TSMigrationGenerator } from './TSMigrationGenerator.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.94",
4
+ "version": "7.0.0-dev.97",
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,13 +50,13 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/knex": "7.0.0-dev.94",
53
+ "@mikro-orm/sql": "7.0.0-dev.97",
54
54
  "umzug": "3.8.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@mikro-orm/core": "^6.6.2"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.0.0-dev.94"
60
+ "@mikro-orm/core": "7.0.0-dev.97"
61
61
  }
62
62
  }