Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 518 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 518 Bytes

Liquibase

Set ./dev or ./test as the working directory.

Generate a changelog:

liquibase \
  --changeLogFile=../db.changelog.xml \
  --classpath=../postgresql-42.2.18.jar \
  generateChangeLog

Add a changeset:

Update db.changelog.xml, then run:

liquibase \
  --changeLogFile=../db.changelog.xml \
  --classpath=../postgresql-42.2.18.jar \
  update

Perform a rollback:

liquibase \
  --changeLogFile=../db.changelog.xml \
  --classpath=../postgresql-42.2.18.jar \
  rollbackCount 1