SmartThingsOSS / ratpack-liquibase

A Liquibase module for Ratpack services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circle CI codecov.io Download

Ratpack Liquibase

Enabling the Ratpack Liquibase module

  1. Add ratpack Liquibase dependency to Gradle
    compile "smartthings:ratpack-liquibase:1.0.0"
  1. Add module binding to Ratpack main. Your usage may vary depending on your configuration strategy, but it would look something like:
    bindings.moduleConfig(LiquibaseModule.class,
            configData.get("/liquibase",
                    LiquibaseModule.Config.class)
  1. Add config properties to your project's .yml file, something like:
liquibase:
  migrationFile: migrations.xml
  autoMigrate: true
  1. Finally create migrations.xml with migrations. An empty migrations file is provided below. See the Liquibase documentation for more details on creating migrations.
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
		xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
</databaseChangeLog>

About

A Liquibase module for Ratpack services


Languages

Language:Java 58.9%Language:Groovy 41.1%