Skip to content

How to run migrations

macourtney edited this page Sep 13, 2010 · 4 revisions

To run all migrations and update your database to the latest version run:

./run.sh script/migrate.clj

To update your database to a specific version (for example version 2) use:

./run.sh script/migrate.clj -version 2

If your database is at a version higher than the version you want to migrate to, migrate.clj will migrate your database down. If your database is at a version lower than the given version, migrate.clj will migrate your database up.

To undo all migrations and start your server fresh migrate to version 0:

./run.sh script/migrate.clj -version 0
Clone this wiki locally