Enhancement: database-migration plugin support
Currently, it seems one needs to create the quartz tables manually when using jdbcStore = true. It would be great if the plugin supports database-migration, to create the quartz table migrations automatically with dbm-gorm-diff, like the database-migration plugin does itself to create the liquibase tables.
For this support, the plugin needs to ensure that it runs after the database-migration plugin. Currently, it runs before here when using this migration:
https://gist.github.com/robertoschwald/3e67d921118f53e8f8e6dd79e64b41a9
Any word on whether this will make it into the plugin? Just hit this problem this afternoon.
@robertoschwald please submit the PR with required changes.
The following things need to be done to integrate the plugin with dbm:
- Create a dbm migration file to create the necessary changes
- Add the migration to changelog.groovy
- Exclude the Quartz tables from dbm config, as there are no real Quartz Domain classes
- Ensure Quartz runs after dbm plugin
Due to 4. I don't know a way to achive 2. and 3. automatically. Maybe I add the migration file and a documentation in the PR. Opinions?