Skip to content

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.

1 participant