Skip to content

Display a warning when migration up/down function is not an asyc function #5

@emmanuelbuah

Description

@emmanuelbuah

Mongo driver functionality is async in nature. To prevent Migrator from updating to the next version before the migration script is complete, using an async function for both up()/down(). This will ensure migration completes before version bump. Note: async func = async | promise.

We might have to require up()/down() to be an async function in the future. For now, warn users to avoid breaking existing code.

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