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
Add support for executing external scripts using @other_script.sql #705
Comments
Thanks for the report. I've documented it as a limitation. I have no immediate plans to fix this, as this has all kinds of hairy implications regarding loading and executing of these files (classpath, transactions, error handling, ...) |
+1 for finding a solution for this problem at some point. Loading the files from class path would work for my use case and I'm not clear what transaction or error handling limitations this would involve. |
+1 I'm using Flyway for DDL but I still depend on SqlPlus for deploying procedures, functions from a single source of the truth in our git repo. |
+1 Would be greate to have this feature. We organize our sources (packages, table definitions, etc.) in different subfolders with (of course) git. With git and specific branches we ensure not to deploy sources in the wrong version. Nowadays we use a kind of install manifest (e.g. 1_5_5.sql) to reference this files. Actually the same way like flyway does it but not automated. Cheers |
This should include support for both the To ensure parameters are processed correctly, #1883 should be implemented first. Reference docs: |
This has now been implemented. |
As Flyway says, that is is compatible with all scripts which can be executed by SqlPlus ('Any Oracle sql script executed by Flyway, can be executed by SqlPlus [...]'), it would be nice to add support for executing other scripts within a script file like the following:
Currently, Flyway interprets this as error:
Is there a way to add support for this? Otherwise I'd have to change all existing scripts in order to be able to use Flyway.
The text was updated successfully, but these errors were encountered: