Last updated by admin 1 year ago
Last updated by mjhugo 1 year ago
Runs liquibase migrations automatically when the server starts. This plugin requires the Liquibase plugin http://www.grails.org/plugin/liquibase
Install:
grails install-plugin liquibase-runner
Define your migrations as you normally would using the Liquibase plugin. To get the liquibase-runner plugin to automatically run those migrations upon application startup, simply define the location of the changelog you would like to run in Config.groovy. You can also specify whether migrations are 'enabled' (i.e. should be run automatically or not). These config settings are environment aware, so you can disable migrations in the test environment, for instance.
migrations.enabled = true
migrations.changelogs = ['migrationschangelog.xml']// set per-environment serverURL stem for creating absolute links
environments {
test {
migrations.enabled = false
}
}
Last updated by admin 1 year ago
Last updated by admin 1 year ago