Sign in to edit and +1 items.
Login required
Download

Liquibase Migration Runner

(0)
Author(s) Mike Hugo
Current Release 1.2   (1 year ago)
Grails Version 1.3.4 > *
Tags
Dependency
compile ":liquibase-runner:1.2"
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