0

We are having some upgrade migration that needs to be executed via a java class, some of the alter commands are database specific and we need to support both MSSQL and Oracle. Can we have database type specific java upgrade classes being loaded and executed?

1 Answer 1

1

You have two options:

  1. Write your Java code so it behaves differently based on the database detected through the connection metadata
  2. Configure Flyway to use different locations based on the current environment
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your response. Please point me to how to do option 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.