From 5975eda15efab559ee51dfab8ca5d6e20e0dd2a6 Mon Sep 17 00:00:00 2001 From: Edvard Date: Tue, 28 May 2019 11:22:27 +0200 Subject: [PATCH] Add up-by-one to documentation --- README.md | 8 ++++++++ cmd/goose/main.go | 1 + 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 7dca014..6c970f2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/goose/main.go b/cmd/goose/main.go index aeadba6..44572f3 100644 --- a/cmd/goose/main.go +++ b/cmd/goose/main.go @@ -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