Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for last N migrations for the database #254

Open
cmpickle opened this issue Jun 17, 2021 · 0 comments · May be fixed by #256
Open

Support for last N migrations for the database #254

cmpickle opened this issue Jun 17, 2021 · 0 comments · May be fixed by #256

Comments

@cmpickle
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant