http://www.liquibase.org/
Runs through the changelog-example.xml-file (only 1 changeSet to begin with)
This project has been tested on GNU/Linux (Linux Mint)
Using a Makefile (GNU Make 3.81 and GNU make 4.1 )
Tested on MySQL ver 5.5 & ver 5.7
Look through the Makefile ( update the software-versions if you'd like to)
Set credentials for your database in the following 2 files
- Makefile
- liquibase.inki.properties
The mysql-user must be able to create a database
The name of the example database is 'liquibase-tutorial'
create the database
$ make db_mysql_create
Run the 'all'-recipe
$ make [all]
- fetches liquibase and unzips
- fetches the mysql-jdbc-jar
- copies liquibase.inki.properties and changelog-example.xml to the liquibase 'sdk'-directory
- runs liquibase (runs through the changeSets, affects the 'liquibase-tutorial'-database )
- makes a database-dump (mysqldump) to the 'backup'-directory.
Validate the 'run' by looking through the database and/or the backup/liquibase_tutorial-dump-.sql
In this example the changeSet is written in XML-format
To explore this tutorial, add a new changeSet to the file 'sdk/workspace/changelog/com/example/changelog-example.xml' and 'run'
$ make run_liquibase