Skip to content

mrobinet/ratpack-liquibase

 
 

Repository files navigation

Circle CI codecov.io Download

Ratpack Liquibase

Enabling the Ratpack Liquibase module

  1. Add ratpack Liquibase dependency to Gradle
    compile "smartthings:ratpack-liquibase:0.1.0"
    compile "org.liquibase:liquibase-core:3.5.1"
  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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 58.2%
  • Groovy 41.8%