Wiki

Clone wiki

ieeg / liquibase

How to run Liquibase to update your local db

We use a program called liquibase to manage our db changes.

Download liquibase-X-bin.zip and liquibase.properties. Explode the zip and put it somewhere. Like your Applications folder.

Put liquibase.properties and braintrust-core-X.jar files somewhere.

Open up the liquibase.properties and edit it to suit your needs. You'll need to change url, username, password, and classpath. Make classpath [DIR-WHERE-braintrust-core-X.jar-IS]/braintrust-core-X.jar.

Now go to the command line and do this (substitute your liquibase.properties location):

liquibase --defaultsFile=/your-path/liquibase.properties update

(liquibase is on my path in /Applications, I don't remember if I had to do something to get it there)

Your database should now be caught up with your code.

Sometimes you'll get errors about your checksums being wrong. If so, do this

liquibase --defaultsFile=/your-path/liquibase.properties  clearCheckSums
and then try again.

Updated