- Java 1.5
java -version
- Download Liquibase
wget http://sourceforge.net/projects/liquibase/files/Liquibase%20Core/liquibase-3.3.0-bin.zip/download -O liquibase-3.3.0-bin.zip
unzip liquibase-3.3.0-bin.zip
cd liquibase-3.3.0-bin.zip
2.Clone this repo
git clone git@github.com:ipij/liquibase.git ./
- (branch step1)
cat liquibase.properties - create
table1table in PostgreSQL liquibase diffliquibase diffChangeLog- (branch step2) Create files as in step1 branch (such as master.xml)
liquibase --changeLogFile=master.xml updateSQLliquibase --changeLogFile=master.xml updateliquibase --changeLogFile=master.xml tag 1.0- drop table1
- (branch step3)
liquibase diffChangeLog - (branch step4)
liquibase --changeLogFile=master.xml update liquibase rollback 1.0