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 revert/rollback the last migration without specifying its name #44

Open
menocomp opened this issue Jul 24, 2019 · 0 comments
Open

Comments

@menocomp
Copy link

menocomp commented Jul 24, 2019

Is there a way to run revert/rollback a migration without specifying its name?

Currently I have to do this:

npx migrate down MIGRATION_FILE_NAME

would be really helpful if there is a command to revert the last migration. something like:

npx migrate down:undo

The same functionality is supported in sequelize by running:

npx sequelize db:migrate:undo
@menocomp menocomp changed the title Support down the last migration without specifying its name Support revert/rollback the last migration without specifying its name Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant