AppSuite:CustomDBMigrationBundle

From Open-Xchange
Revision as of 14:32, 26 August 2014 by Martin.schneider (talk | contribs) (Created page with "<div class="title">How to write custom bundles to execute database migration statements.</div> '''Summary''': With release 7.6.1 it is possible to change the database schema ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
How to write custom bundles to execute database migration statements.

Summary: With release 7.6.1 it is possible to change the database schema based on usage of the open source tool Liquibase. Currently only updating the configdb with the new mechanism is desired. This article gives a short introduction based on an existing sample bundle how to write custom database migration bundles and how to attach your custom statements to those given by Open-Xchange.

Prerequisite

This article is based on an existing sample bundle located in the public git repository backend-samples. Clone the repository by executing

git clone https://git.open-xchange.com/git/examples/backend-samples

The required bundle is named 'com.openexchange.sample.database.migration'.

Bundle dependencies

Using Liquibase

Database lock

Preconditions

Custom Java Classes

Command line tools

Important hints