Sunday, August 7, 2011

Liquibase---database version control

Liquibase is an database version control library which makes sure that your DBCR(database change request) are in the consistent state from dev,qa,staging to production.

For a simple run from command line:Use tho following command:

java -jar liquibase.jar \
--driver=oracle.jdbc.OracleDriver \
--classpath=\path\to\classes:jdbcdriver.jar \
--changeLogFile=com/example/db.changelog.xml \
--url="jdbc:oracle:thin:@localhost:1521:oracle" \
--username=scott \
--password=tiger \
update