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

Specify specific migration in db:migrate:undo #350

Closed
gotrevor opened this issue Sep 1, 2016 · 5 comments
Closed

Specify specific migration in db:migrate:undo #350

gotrevor opened this issue Sep 1, 2016 · 5 comments

Comments

@gotrevor
Copy link

gotrevor commented Sep 1, 2016

Umzug provides options for specifying which migration to down: https://github.com/sequelize/umzug#reverting-executed-migration

I'd like to be able to specify, at least, the name of the migration I'd like to undo.

I imagine a feature like this might be useful for up, as well.

Any support for adding such a feature?

@bcaudan
Copy link
Contributor

bcaudan commented Oct 27, 2016

+1

@sushantdhiman
Copy link
Contributor

#387

@patil-gaurav
Copy link

patil-gaurav commented Jul 5, 2018

db:migrate:undo --name 20180704124934-create-branch.js
this will work only if you don't have relation between your model with other models.

codetriage-readme-bot pushed a commit to codetriage-readme-bot/cli that referenced this issue Jun 5, 2019
Add ARMv8 support for release script
@jsina
Copy link

jsina commented Aug 18, 2019

@patil-gaurav but this one just revert the last migration and it's not gonna any effect to the specific migration.

@FrankDev-327
Copy link

FrankDev-327 commented Apr 28, 2020

db:migrate:undo --name 20180704124934-create-branch.js
this will work only if you don't have relation between your model with other models.

Thanks you so much @patil-gaurav
It worked to me very well!

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

6 participants