I'm submitting a...
Current behavior
When trying to use scopes, its not finding the migration files in the scoped directory and is instead running files in the ./migrations folder. This happens with both the CLI and through the API.
Expected behavior
Migrations should be run in the scoped folder.
Minimal reproduction of the problem with instructions
db-migrate create:client_1 users
// migrations/client_1/20211010214023-users.js created successfully
db-migrate up:client_1
// [migration] Nothing to run
db-migrate create users
// migrations/20211010215341-user.js created successfully
db-migrate up:client_1
// runs migrations/20211010215341-user
Looking at the code in walker.js up function, its loading the files from the filesystem with File.loadFromFileystem(this.directory, this.prefix, this.internals). "this.directory" is a path to only the migrations directory which I imagine should have the scoped folder name there as well.
Environment
Windows 10
Node v14.16.0
db-migrate: 1.0.0-beta.16
db-migrate-mongodb: 1.5.0
I'm submitting a...
Current behavior
When trying to use scopes, its not finding the migration files in the scoped directory and is instead running files in the ./migrations folder. This happens with both the CLI and through the API.
Expected behavior
Migrations should be run in the scoped folder.
Minimal reproduction of the problem with instructions
Looking at the code in walker.js up function, its loading the files from the filesystem with File.loadFromFileystem(this.directory, this.prefix, this.internals). "this.directory" is a path to only the migrations directory which I imagine should have the scoped folder name there as well.
Environment
Windows 10
Node v14.16.0
db-migrate: 1.0.0-beta.16
db-migrate-mongodb: 1.5.0