mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

Reset command #319

Open metalmatze opened 6 years ago

metalmatze commented 6 years ago

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 commented 6 years ago

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

metalmatze commented 6 years ago

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. :wink:

jeffreylo commented 6 years ago

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