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 a function similar to flyway baseline #298

Open
JamesMc86 opened this issue Dec 11, 2023 · 1 comment
Open

Support a function similar to flyway baseline #298

JamesMc86 opened this issue Dec 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@JamesMc86
Copy link

I've just been investigating refinery as an alternative to flyway - primarily because the application is now being written in Rust and automation is a lot easier with refinery.

One problem though is that I need to migrate an existing database. I need to be able to set on the production database the current migration version so unneeded migrations aren't applied.

But I still want the full set available for testing.

For example:

. I have migrations 1,2 and 3.
. The database has already had migrations 1 and 2 applied by other tools.
. I want to run a command against the database to say "only apply migrations from 3" or similar.

@JamesMc86
Copy link
Author

I just noticed the -f flag in migrate.

So perhaps this would work by running flyway migrate -f -t 2? I'll have a chance to test it this week I hope.

@jxs jxs added the enhancement New feature or request label Jan 23, 2024
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

2 participants