@mikro-orm/migrations-mongodb 7.1.0-dev.25 → 7.1.0-dev.27
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/MigrationRunner.d.ts +2 -0
- package/MigrationRunner.js +7 -0
- package/MigrationStorage.d.ts +3 -1
- package/MigrationStorage.js +7 -0
- package/package.json +3 -3
- package/typings.d.ts +2 -0
- package/typings.js +6 -1
package/MigrationRunner.d.ts
CHANGED
package/MigrationRunner.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { rejectRuntimeSchema } from './typings.js';
|
|
1
2
|
/** Executes individual MongoDB migration files within optional transaction contexts. */
|
|
2
3
|
export class MigrationRunner {
|
|
3
4
|
driver;
|
|
@@ -31,4 +32,10 @@ export class MigrationRunner {
|
|
|
31
32
|
unsetMasterMigration() {
|
|
32
33
|
delete this.masterTransaction;
|
|
33
34
|
}
|
|
35
|
+
setRunSchema(schema) {
|
|
36
|
+
rejectRuntimeSchema(schema);
|
|
37
|
+
}
|
|
38
|
+
unsetRunSchema() {
|
|
39
|
+
/* nothing to do */
|
|
40
|
+
}
|
|
34
41
|
}
|
package/MigrationStorage.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EntitySchema, type MigrationsOptions, type Transaction } from '@mikro-orm/core';
|
|
2
2
|
import type { MongoDriver } from '@mikro-orm/mongodb';
|
|
3
|
-
import type
|
|
3
|
+
import { type MigrationRow } from './typings.js';
|
|
4
4
|
/** Tracks executed MongoDB migrations in a collection. */
|
|
5
5
|
export declare class MigrationStorage {
|
|
6
6
|
protected readonly driver: MongoDriver;
|
|
@@ -17,6 +17,8 @@ export declare class MigrationStorage {
|
|
|
17
17
|
getExecutedMigrations(): Promise<MigrationRow[]>;
|
|
18
18
|
setMasterMigration(trx: Transaction): void;
|
|
19
19
|
unsetMasterMigration(): void;
|
|
20
|
+
setRunSchema(schema?: string): void;
|
|
21
|
+
unsetRunSchema(): void;
|
|
20
22
|
/**
|
|
21
23
|
* @internal
|
|
22
24
|
*/
|
package/MigrationStorage.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineEntity, p, } from '@mikro-orm/core';
|
|
2
|
+
import { rejectRuntimeSchema } from './typings.js';
|
|
2
3
|
/** Tracks executed MongoDB migrations in a collection. */
|
|
3
4
|
export class MigrationStorage {
|
|
4
5
|
driver;
|
|
@@ -32,6 +33,12 @@ export class MigrationStorage {
|
|
|
32
33
|
unsetMasterMigration() {
|
|
33
34
|
delete this.masterTransaction;
|
|
34
35
|
}
|
|
36
|
+
setRunSchema(schema) {
|
|
37
|
+
rejectRuntimeSchema(schema);
|
|
38
|
+
}
|
|
39
|
+
unsetRunSchema() {
|
|
40
|
+
/* nothing to do */
|
|
41
|
+
}
|
|
35
42
|
/**
|
|
36
43
|
* @internal
|
|
37
44
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/migrations-mongodb",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.27",
|
|
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",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/mongodb": "7.1.0-dev.
|
|
50
|
+
"@mikro-orm/mongodb": "7.1.0-dev.27",
|
|
51
51
|
"mongodb": "7.2.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@mikro-orm/core": "^7.0.13"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@mikro-orm/core": "7.1.0-dev.
|
|
57
|
+
"@mikro-orm/core": "7.1.0-dev.27"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">= 22.17.0"
|
package/typings.d.ts
CHANGED