Skip to content

Programmatical migrate() won't work #15

Description

@ProtoPlex

When you use require('sql-migrations').migrate(configuration) instead of run() it does not attach adapter. So it breaks with an error:
..../node_modules/sql-migrations/commands/run-migrations-command.js:4
return adapter.appliedMigrations()
^
TypeError: Cannot read property 'appliedMigrations' of undefined

migrate() command requires adapter instance as a 2nd argument
as well as rollback()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions