mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
Merge pull request #175 from m0ar/add-up-by-one-to-docs
Add up-by-one to documentation
This commit is contained in:
commit
940412f732
@ -71,6 +71,7 @@ Options:
|
||||
|
||||
Commands:
|
||||
up Migrate the DB to the most recent version available
|
||||
up-by-one Migrate the DB up by 1
|
||||
up-to VERSION Migrate the DB to a specific VERSION
|
||||
down Roll back the version by 1
|
||||
down-to VERSION Roll back to a specific VERSION
|
||||
@ -112,6 +113,13 @@ Migrate up to a specific version.
|
||||
$ goose up-to 20170506082420
|
||||
$ OK 20170506082420_create_table.sql
|
||||
|
||||
## up-by-one
|
||||
|
||||
Migrate up a single migration from the current version
|
||||
|
||||
$ goose up-by-one
|
||||
$ OK 20170614145246_change_type.sql
|
||||
|
||||
## down
|
||||
|
||||
Roll back a single migration from the current version.
|
||||
|
@ -105,6 +105,7 @@ Options:
|
||||
usageCommands = `
|
||||
Commands:
|
||||
up Migrate the DB to the most recent version available
|
||||
up-by-one Migrate the DB up by 1
|
||||
up-to VERSION Migrate the DB to a specific VERSION
|
||||
down Roll back the version by 1
|
||||
down-to VERSION Roll back to a specific VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user