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

Looking for a top level rollback function like Triplex.migrate/2 #73

Open
zorn opened this issue Apr 16, 2020 · 4 comments
Open

Looking for a top level rollback function like Triplex.migrate/2 #73

zorn opened this issue Apr 16, 2020 · 4 comments

Comments

@zorn
Copy link

zorn commented Apr 16, 2020

I'm adding a in-code Release module so I can perform migrations (and rollbacks) from the complied binary. I see that there is an in-code Triplex.migrate/2 function but I could not find a similar function for rollback behavior. Am I missing this? Interested in a patch?

Thanks for your help, here and with the project in general.

@zenbaku
Copy link

zenbaku commented Jun 11, 2020

I'd like this feature as well. It seems like a simple solution could be to change the migration direction in the call to Migrator.run. Currently, Triplex.migrate/2, the direction is :up so a call to Triplex.rollback/2 could be just the same, but :down.

@kelvinst
Copy link
Contributor

Alrighty, a PR is welcome 🙂

@haizop
Copy link

haizop commented Aug 20, 2021

@kelvinst Interested still interested in a PR? @zenbaku Any progress?

@kelvinst
Copy link
Contributor

Hey @haizop, sure! Totally welcome

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

4 participants