Skip to content

Specify migrations directory over progamable API #553

Closed
@BorntraegerMarc

Description

@BorntraegerMarc

I'm submitting a...

  • Bug report
  • Feature request
  • Question

Current behavior

I have the following code:

const dbm = dbMigrate.getInstance(true, {
            cwd: './',
            env: 'dev'
});
await dbm.up(100, '');

My problem is now that the migrations are not under ./root/migrations but under ./root/build/migrations. How can I specify programatically to search in a different folder for the migrations?

But my package.json & database.json are under ./root

Environment


db-migrate version: 0.10.5

Additional information:
- Node version: 8.9.1
- Platform:  Windows

Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions