-
Notifications
You must be signed in to change notification settings - Fork 14
How to run migrations
macourtney edited this page Sep 13, 2010
·
4 revisions
Added for version: 0.4
Updated for version: 0.7
To run all migrations and update your database to the latest version run:
lein conjure migrate
To update your database to a specific version (for example version 2) use:
lein conjure migrate -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:
lein conjure migrate -version 0
To migrate the production database to the latest version use:
lein conjure migrate -mode production