rake-db 2.3.35 → 2.3.37
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/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var pqb = require('pqb');
|
|
|
6
6
|
var path = require('path');
|
|
7
7
|
var promises = require('fs/promises');
|
|
8
8
|
var prompts = require('prompts');
|
|
9
|
-
var url = require('url');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
11
|
|
|
@@ -265,12 +264,12 @@ const makePopulateEnumQuery = (item) => {
|
|
|
265
264
|
};
|
|
266
265
|
};
|
|
267
266
|
|
|
268
|
-
|
|
267
|
+
let currentChanges = [];
|
|
269
268
|
const change = (fn) => {
|
|
270
269
|
currentChanges.push(fn);
|
|
271
270
|
};
|
|
272
271
|
const clearChanges = () => {
|
|
273
|
-
currentChanges
|
|
272
|
+
currentChanges = [];
|
|
274
273
|
};
|
|
275
274
|
const getCurrentChanges = () => currentChanges;
|
|
276
275
|
|
|
@@ -1318,7 +1317,7 @@ const processMigration = async (db, up, file, config, options, appCodeUpdaterCac
|
|
|
1318
1317
|
clearChanges();
|
|
1319
1318
|
let changes = changeCache[file.path];
|
|
1320
1319
|
if (!changes) {
|
|
1321
|
-
await config.import(
|
|
1320
|
+
await config.import(file.path);
|
|
1322
1321
|
changes = getCurrentChanges();
|
|
1323
1322
|
changeCache[file.path] = changes;
|
|
1324
1323
|
}
|