Skip to content

Instantly share code, notes, and snippets.

@simonetripodi
Created December 10, 2011 16:08
Show Gist options
  • Save simonetripodi/1455467 to your computer and use it in GitHub Desktop.
Save simonetripodi/1455467 to your computer and use it in GitHub Desktop.
mybatis migrations options
Usage: migrate [options] [command] [command options]
Options:
-e, --env Environment to configure.
Default: development
-f, --force Forces script to continue even if SQL errors are
encountered.
Default: false
-h, --help Displays this usage message.
Default: false
-p, --path Path to repository. Default current working directory.
Default: /Users/simonetripodi/Documents/workspace/mybatis-migrations
-t, --template Path to custom template for creating new sql scripts.
-X, --trace Shows additional error details (if any).
Default: false
-v, --version Display version information
Default: false
Commands:
bootstrap(bs) Runs the bootstrap SQL script (see scripts/bootstrap.sql for more).
Usage: bootstrap(bs) [options]
down(d) Undoes migrations applied to the database. ONE by default or 'n' specified.
Usage: down(d) [options] [n]
init(i) Creates (if necessary) and initializes a migration path.
Usage: init(i) [options]
new(n) Creates a new migration with the provided description.
Usage: new(n) [options] <description>
pending(p) Force executes pending migrations out of order (not recommended).
Usage: pending(p) [options]
script(sc) Generates a delta migration script from version v1 to v2 (undo if v1 > v2).
Usage: script(sc) [options] <v1> <v2>
status(st) Prints the changelog from the database if the changelog table exists.
Usage: status(st) [options]
up(u) Run unapplied migrations, ALL by default, or 'n' specified.
Usage: up(u) [options] [n]
version(v) Migrates the database up or down to the specified version.
Usage: version(v) [options] <version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment