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

Add option for single up and down migrations #18

Open
AxelTerizaki opened this issue May 11, 2020 · 1 comment
Open

Add option for single up and down migrations #18

AxelTerizaki opened this issue May 11, 2020 · 1 comment

Comments

@AxelTerizaki
Copy link

Hello !

First off, thanks for this tool, I find it much easier to use and understand than others, and it's working well.

I was wondering if it would be possible to add a single up and down command, like this :

postgrator up

or something like

postgrator --migrationsToDo=1

The goal is to run migrations one at a time. A down version would be nice as well. It allows easier testing of migrations, as with those commands I can simply up and down quickly to test if my do/undo migrations are working (do and undo command line arguments could work as well).

This is also useful when migrating from one dev branch to the other on projects, so you can easily undo a migration on your test database before switching back to the main branch to test something else.

Thanks in advance for considering this feature.

@AxelTerizaki
Copy link
Author

Haha, I just realized now that you weren't the author of postgrator but just of the cli-tool.

Should I post my issue there instead, before bothering you with it? I'm not sure if it can be done purely with a CLI tool.

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

No branches or pull requests

2 participants