Add up-by-one to documentation

pull/175/head
Edvard 2019-05-28 11:22:27 +02:00
parent 799fcfb84b
commit 5975eda15e
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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