In my application I use Flyway to migrate the database. I have a SQL file containing the database structure which includes some CREATE TRIGGER statements. jOOQ code generation fails because it uses H2 which does not support triggers. What is the best way to work around this problem?
- Can I skip
CREATE TRIGGERstatements on code generation? - Refactor
CREATE TRIGGERstatements into a separate SQL file. Can I skip SQL files based on file name for the code generation? - Can I use e.g. docker to start a MariaDB server which is used instead H2 for code generation?
Or maybe you have a better or nicer idea how to deal with trigger creation?