[oracle] flyway:clean doesn't handle DDL triggers very well #604
Labels
Comments
I have submitted pull request #629, which would allow us to extend any of the DbSupport classes. This makes it trivial to override doClean(), as demonstrated by the 'CustomCleanTest' in the core module. |
Hi Christoffer, thanks for the great report! I've reproduced it and fixed it. Cheers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how to reproduce
flyway:clean
Since flyway drops the sequence before the triggers, the triggers become invalid. Since the triggers are ddl triggers, it's not possible to execute any more DDL statements:
The only way to get rid of the triggers, is to log in as the
SYSTEM
-user and executedrop trigger <schema>.<trigger name>
I have worked around this by overwriting all DDL triggers before i run
flyway:clean
:I'm not sure if overwriting the triggers is the best way to fix the problem...
The text was updated successfully, but these errors were encountered: