rake-db 2.10.31 → 2.10.32

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.mjs CHANGED
@@ -2309,7 +2309,11 @@ const processMigration = async (db, up, file, config, options, appCodeUpdaterCac
2309
2309
  const migrate = (options, config, args = []) => migrateOrRollback(options, config, args, true);
2310
2310
  const rollback = (options, config, args = []) => migrateOrRollback(options, config, args, false);
2311
2311
  const redo = async (options, config, args = []) => {
2312
+ var _a;
2312
2313
  await migrateOrRollback(options, config, args, false);
2314
+ for (const file in changeCache) {
2315
+ (_a = changeCache[file]) == null ? void 0 : _a.reverse();
2316
+ }
2313
2317
  await migrateOrRollback(options, config, args, true);
2314
2318
  };
2315
2319