grails / grails-quartz

This project provides integration of the Quartz scheduling framework into the Grails Framework
http://grails.org/plugin/quartz
Apache License 2.0
76 stars 90 forks source link

Enhancement: database-migration plugin support #76

Open robertoschwald opened 8 years ago

robertoschwald commented 8 years ago

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.

robertoschwald commented 7 years ago

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

ebakke commented 6 years ago

Any word on whether this will make it into the plugin? Just hit this problem this afternoon.

puneetbehl commented 6 years ago

@robertoschwald please submit the PR with required changes.

robertoschwald commented 6 years ago

The following things need to be done to integrate the plugin with dbm:

  1. Create a dbm migration file to create the necessary changes
  2. Add the migration to changelog.groovy
  3. Exclude the Quartz tables from dbm config, as there are no real Quartz Domain classes
  4. 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?