From ff8d4782635ea2a363cf0d034a9629076a8272f9 Mon Sep 17 00:00:00 2001 From: it0a Date: Wed, 3 Jun 2015 12:58:15 -0400 Subject: [PATCH] Updating documentation for v0.1.1. --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9fd9dfb..0bcebd3 100644 --- a/README.md +++ b/README.md @@ -67,20 +67,37 @@ Note that `:schema "example6"` will connect with `:user "anotheruser"` and `:pas ## Usage +### Running Migrations + ``` seql [db-groups...] ``` -With the above databases.clj, we can run all migrations specified in migrations.clj against the 'default' and 'another' groups: - +Using the above databases.clj: ``` seql default another ``` +Will run migrations on all databases in the 'default' and 'another' groups. + +### Synchronizing Migrations + +To synchronize all migrations as having been run: + +``` +seql --sync [db-groups...] +``` + +**NOTE:** Doing this will also sync migrations with checksum mismatches that have already been run. + +TODO: --sync --file "filename" + +### Removing Migrations + +TODO: --remove --file "filename" [db-groups] ## TODO -* Better parsing of sql files -* Ability to override same file name, different checksum conflicts +* --dry-run * Rollback migrations * Error handling * Leiningen plugin