@mikro-orm/migrations-mongodb 7.0.0-dev.68 → 7.0.0-dev.69
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/Migrator.d.ts +5 -5
- package/Migrator.js +6 -6
- package/package.json +3 -3
package/Migrator.d.ts
CHANGED
|
@@ -19,15 +19,15 @@ export declare class Migrator implements IMigrator {
|
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
create(path?: string, blank?: boolean, initial?: boolean, name?: string): Promise<MigrationResult>;
|
|
23
23
|
/**
|
|
24
24
|
* @inheritDoc
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
checkSchema(): Promise<boolean>;
|
|
27
27
|
/**
|
|
28
28
|
* @inheritDoc
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
createInitial(path?: string): Promise<MigrationResult>;
|
|
31
31
|
/**
|
|
32
32
|
* @inheritDoc
|
|
33
33
|
*/
|
|
@@ -40,11 +40,11 @@ export declare class Migrator implements IMigrator {
|
|
|
40
40
|
/**
|
|
41
41
|
* @inheritDoc
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
getExecuted(): Promise<MigrationRow[]>;
|
|
44
44
|
/**
|
|
45
45
|
* @inheritDoc
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
getPending(): Promise<UmzugMigration[]>;
|
|
48
48
|
/**
|
|
49
49
|
* @inheritDoc
|
|
50
50
|
*/
|
package/Migrator.js
CHANGED
|
@@ -31,7 +31,7 @@ export class Migrator {
|
|
|
31
31
|
/**
|
|
32
32
|
* @inheritDoc
|
|
33
33
|
*/
|
|
34
|
-
async
|
|
34
|
+
async create(path, blank = false, initial = false, name) {
|
|
35
35
|
this.ensureMigrationsDirExists();
|
|
36
36
|
const diff = { up: [], down: [] };
|
|
37
37
|
const migration = await this.generator.generate(diff, path, name);
|
|
@@ -45,15 +45,15 @@ export class Migrator {
|
|
|
45
45
|
/**
|
|
46
46
|
* @inheritDoc
|
|
47
47
|
*/
|
|
48
|
-
async
|
|
48
|
+
async checkSchema() {
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
/* v8 ignore stop */
|
|
52
52
|
/**
|
|
53
53
|
* @inheritDoc
|
|
54
54
|
*/
|
|
55
|
-
async
|
|
56
|
-
return this.
|
|
55
|
+
async createInitial(path) {
|
|
56
|
+
return this.create(path);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* @inheritDoc
|
|
@@ -111,14 +111,14 @@ export class Migrator {
|
|
|
111
111
|
/**
|
|
112
112
|
* @inheritDoc
|
|
113
113
|
*/
|
|
114
|
-
async
|
|
114
|
+
async getExecuted() {
|
|
115
115
|
this.ensureMigrationsDirExists();
|
|
116
116
|
return this.storage.getExecutedMigrations();
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* @inheritDoc
|
|
120
120
|
*/
|
|
121
|
-
async
|
|
121
|
+
async getPending() {
|
|
122
122
|
this.ensureMigrationsDirExists();
|
|
123
123
|
return this.umzug.pending();
|
|
124
124
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/migrations-mongodb",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.69",
|
|
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,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/mongodb": "7.0.0-dev.
|
|
53
|
+
"@mikro-orm/mongodb": "7.0.0-dev.69",
|
|
54
54
|
"mongodb": "6.20.0",
|
|
55
55
|
"umzug": "3.8.2"
|
|
56
56
|
},
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"@mikro-orm/core": "^6.6.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
61
|
+
"@mikro-orm/core": "7.0.0-dev.69"
|
|
62
62
|
}
|
|
63
63
|
}
|