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

Support reverting a migration on a specific database #764

Open
grennis opened this issue May 9, 2023 · 0 comments
Open

Support reverting a migration on a specific database #764

grennis opened this issue May 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@grennis
Copy link

grennis commented May 9, 2023

Is your feature request related to a problem? Please describe.
If I run migrate --revert, Fluent attempts to revert migrations on all attached databases. This is often not desired when migrations have been run independently on different databases over time.

Describe the solution you'd like
Add an optional db parameter, like migrate --revert --db psql

Describe alternatives you've considered
Maybe Fluent can check timestamps and only revert changes that were made together across databases, but this seems error prone.

Another option would be to query [Y/N] for the migration on each database instead of one [Y/N] prompt for all.

So currently I think the only way to support this is for the app developer to write a custom command.

Additional context
N/A

@grennis grennis added the enhancement New feature or request label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant