Skip to content

Commit 22b4ce6

Browse files
committed
fix(v2): add direction to internals and dont learn on transaltion
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 162a6da commit 22b4ce6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/executors/versioned/v2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ const execUnit = {
6161
},
6262

6363
down: async function (context, driver, file) {
64+
context.internals.backwards = true;
65+
6466
// start migration, see up comments
6567
await State.startMigration(context._driver, file, context.internals);
6668
await TranslateState(context._driver, file, driver, context.internals);

lib/methods/v2/translatestate.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const Promise = require('bluebird');
22
const State = require('../../state');
33
const Chain = require('../../chain');
44
const Migrate = require('./migrate');
5-
const Learn = require('../../learn');
65

76
const methods = {
87
createTable: async (driver, [t], internals) => {
@@ -74,7 +73,6 @@ module.exports = async (context, file, driver, internals) => {
7473
const mod = internals.modSchema;
7574

7675
const chain = new Chain(context, file, driver, internals);
77-
chain.addChain(Learn);
7876
chain.addChain(Migrate);
7977
await Promise.resolve(mod.s.reverse()).each(args =>
8078
processEntry(context, file, chain, internals, args)

0 commit comments

Comments
 (0)