triplex icon indicating copy to clipboard operation
triplex copied to clipboard

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

Open zorn opened this issue 5 years ago • 4 comments

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.

zorn avatar Apr 16 '20 19:04 zorn

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.

zenbaku avatar Jun 11 '20 17:06 zenbaku

Alrighty, a PR is welcome 🙂

kelvinst avatar Jun 11 '20 18:06 kelvinst

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

haizop avatar Aug 20 '21 17:08 haizop

Hey @haizop, sure! Totally welcome

kelvinst avatar Aug 23 '21 12:08 kelvinst