Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Reset command #319

Open
metalmatze opened this issue Dec 11, 2017 · 3 comments
Open

Reset command #319

metalmatze opened this issue Dec 11, 2017 · 3 comments

Comments

@metalmatze
Copy link

Hey!
What happened to the reset command? I want to simply reset the db while developing. It seems that there once was a reset command: #123

Thanks.

@jeffreylo
Copy link

What you’re describing seems equivalent to a drop and up.

@metalmatze
Copy link
Author

Yes, pretty much running drop and then up. But I'm always either running:
migrate -verbose -database postgres://... -path migrations drop
migrate -verbose -database postgres://... -path migrations up
separately, or I use && in between.
I'd simply prefer to run one command with a reset instead. 😉

@jeffreylo
Copy link

Then write your own command. That’s what this library provides.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants