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

Expose flyway.schemas as default placeholder #3564

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

odin568
Copy link

@odin568 odin568 commented Nov 7, 2022

Background:
I run on oracle with multiple complex schemas an heavy use of packages.
It can happen that packages have failures but anyhow get migrated succesfully as no ORA error is thrown.
In addition it can happen that packages are on failure, but after triggering re-compilation they work.

In order to solve that, I have a afterMigrate.sql script, which recompiles first invalid objects and then verifies if all are in valid state.

This script needs the schema names in order to look only to relevant schemas. I want to make this script re-usable and therefor use the information from flyway.schemas from configuration. I would use this info to split it and do the checks per schema accordingly. Currently I can only do it with the defaultSchema or hardcode all schema names in the script I want to avoid.

Please have a look and feedback if I have missed something or need to further do something.

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

Successfully merging this pull request may close these issues.

None yet

1 participant