Skip to content

Support for last N migrations for the database #254

@cmpickle

Description

@cmpickle

When using the status command of goose it can take a long time to read and print out all of the years worth of migrations to the terminal. Often times when I run the status command all I care about is looking at the last 10 or so migrations to see if the database that I am currently pointed at has had the latest migrations applied.

I would love to see support added for a flag along the lines of goose mysql "[DB_CONNECTION_STRING]" status -n 10 That would allow me to have goose retrieve the last 10 migrations and if they have been applied as status typically does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions