Skip to content

Commit

Permalink
fix: scopes did not use new properties on walker class
Browse files Browse the repository at this point in the history
fixes #757

Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Nov 15, 2021
1 parent 1c814bc commit 4a0326b
Show file tree
Hide file tree
Showing 5 changed files with 4,443 additions and 24 deletions.
6 changes: 3 additions & 3 deletions lib/commands/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ async function prepare (internals, config) {
);

if (internals.locTitle) {
migrator.migrationsDir = path.resolve(
migrator.directory = path.resolve(
internals.argv['migrations-dir'],
internals.locTitle
);
} else {
migrator.migrationsDir = path.resolve(internals.argv['migrations-dir']);
migrator.directory = path.resolve(internals.argv['migrations-dir']);
}

internals.migrationsDir = migrator.migrationsDir;
internals.migrationsDir = migrator.directory;

await migrator.createMigrationsTable();
log.verbose('migration table created');
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/down.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function prepare (internals, config) {
Migrator
);

migrator.migrationsDir = path.resolve(internals.argv['migrations-dir']);
migrator.directory = path.resolve(internals.argv['migrations-dir']);

await migrator.createMigrationsTable();
log.verbose('migration table created');
Expand Down
6 changes: 3 additions & 3 deletions lib/commands/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ async function prepare (internals, config) {
);

if (internals.locTitle) {
migrator.migrationsDir = path.resolve(
migrator.directory = path.resolve(
internals.argv['migrations-dir'],
internals.locTitle
);
} else {
migrator.migrationsDir = path.resolve(internals.argv['migrations-dir']);
migrator.directory = path.resolve(internals.argv['migrations-dir']);
}

internals.migrationsDir = migrator.migrationsDir;
internals.migrationsDir = migrator.directory;

await migrator.createMigrationsTable();
log.verbose('migration table created');
Expand Down
6 changes: 3 additions & 3 deletions lib/commands/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ async function prepare (internals, config) {
);

if (internals.locTitle) {
migrator.migrationsDir = path.resolve(
migrator.directory = path.resolve(
internals.argv['migrations-dir'],
internals.locTitle
);
} else {
migrator.migrationsDir = path.resolve(internals.argv['migrations-dir']);
migrator.directory = path.resolve(internals.argv['migrations-dir']);
}

internals.migrationsDir = migrator.migrationsDir;
internals.migrationsDir = migrator.directory;

await migrator.createMigrationsTable();
log.verbose('migration table created');
Expand Down
Loading

0 comments on commit 4a0326b

Please sign in to comment.