Which version and edition of Flyway are you using?
Flyway Community Edition 6.2.4 by Redgate
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
Which operating system are you using?
Executes through flyway/flyway docker image
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Our migration script includes a stored procedure. During DB migration, we don't face any issues and procedure gets created. But during flyway clean command execution, we get below error
Message : Amazon Invalid operation: function .(character varying, character varying) does not exist
After looking into the flyway code, observed that the clean action does not differentiate the "procedure" and "function". ie org.flywaydb.core.internal.database.redshift.RedshiftSchema->generateDropStatementsForRoutines() does not differentiate procedure. The procedure also treated like function and execute with command "drop function" instead of "drop procedure".
Instead, we should use PG_PROC_INFO-> prokind to differentiate procedure and function to generate a respective drop statement.
What did you expect to see?
The clean command should handle the procedure clean
What did you see instead?
The clean command fails with below error in Redshift DB if the stored procedure exists Amazon Invalid operation: function .(character varying, character varying) does not exist
The text was updated successfully, but these errors were encountered: