-
Notifications
You must be signed in to change notification settings - Fork 280
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
rollback: export ErrNoRollback to rollback all #292
Comments
Hi! Yes that seems like a good idea - PR welcome |
Great ! PR done. I can also implement the |
Yeah you could make a PR for rollbackAll too. Curious what you use it for? Why don’t you just truncate or drop all tables? |
Great! I'm using it in a go test which:
It helps catching missing statements in For example, if there is a missing |
Not a bad idea. I'll do that in my project too. |
Happy to help :) For the reference, I created the PR for the RollbackAll func : #303 |
Hi,
First, thanks for this great project!
I'm integrating dbmate as a golang library in my project and, in order to test all migrations, I want to apply all rollback migrations until the original state.
To achieve this, I'm using the following function:
In order to avoid issues with future upgrades, would it be possible to export the following error as a global ?
dbmate/pkg/dbmate/db.go
Line 483 in 1613f72
like:
I can make a PR if that sounds good to you.
This issue is linked to #221 and #256 but it allows more flexibility when using it as a library.
Thanks!
The text was updated successfully, but these errors were encountered: