Home

The databases/liquibase port

liquibase-3.5.1p2 – manage SQL database schemas via config files (cvsweb github mirror)

Description

Liquibase is a Java-based command-line tool that allows you to build and
maintain a SQL database schema using a series of "changeset" files that
can be checked into a version control system.  This allows the database
schema to be just another piece of your application that can be
versioned and maintained, just like any other piece of source code.
WWW: http://liquibase.org/

Readme

+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------

Overview
========

In order to use liquibase, you will need to install the JDBC
driver for the database containing the schema you wish to manage.
For example, to use liquibase to manage the schema of a PostgreSQL
database, you will need to install the postgresql-jdbc package or
port.

A simple example below shows two files, a script that contains the
liquibase command line necessary to run a migration on a PostgreSQL
database called 'foo'.  The liquibase XML changelog will add a new
table called 'department' to the database.

Example script
==============

#!/bin/sh
liquibase \
    --driver=org.postgresql.Driver \
    --classpath=${LOCALBASE}/share/postgresql/java/postgresql.jar \
    --changeLogFile=changes.xml \
    --url="jdbc:postgresql://localhost/foo" \
    --username=your_user \
    --password=your_password \
    migrate

Example ChangeLog File
======================





    
        
            
                
            
            
                
            
            
        
    

Maintainer

Bryan Everly

Only for arches

aarch64 amd64 i386 sparc64

Categories

databases java

Run dependencies

Files

Search