rake-db 2.4.44 → 2.5.0
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1683,9 +1683,13 @@ const migrateOrRollback = async (options, config, args, up) => {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
};
|
|
1685
1685
|
const changeCache = {};
|
|
1686
|
+
const begin = {
|
|
1687
|
+
text: "BEGIN",
|
|
1688
|
+
values: orchidCore.emptyArray
|
|
1689
|
+
};
|
|
1686
1690
|
const processMigration = async (db, up, file, config, options, appCodeUpdaterCache) => {
|
|
1687
1691
|
var _a;
|
|
1688
|
-
const asts = await db.transaction(async (tx) => {
|
|
1692
|
+
const asts = await db.transaction(begin, async (tx) => {
|
|
1689
1693
|
const db2 = createMigrationInterface(tx, up, config);
|
|
1690
1694
|
clearChanges();
|
|
1691
1695
|
let changes = changeCache[file.path];
|