Skip to content

Commit 1049490

Browse files
authored
Merge pull request #1179 from lunfel/master
Update migrate -help output for the readme file
2 parents 033835a + c5137c4 commit 1049490

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

cmd/migrate/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,18 @@ Options:
8686
-help Print usage
8787

8888
Commands:
89-
create [-ext E] [-dir D] [-seq] [-digits N] [-format] NAME
90-
Create a set of timestamped up/down migrations titled NAME, in directory D with extension E.
91-
Use -seq option to generate sequential up/down migrations with N digits.
92-
Use -format option to specify a Go time format string.
89+
create [-ext E] [-dir D] [-seq] [-digits N] [-format] [-tz] NAME
90+
Create a set of timestamped up/down migrations titled NAME, in directory D with extension E.
91+
Use -seq option to generate sequential up/down migrations with N digits.
92+
Use -format option to specify a Go time format string. Note: migrations with the same time cause "duplicate migration version" error.
93+
Use -tz option to specify the timezone that will be used when generating non-sequential migrations (defaults: UTC).
94+
9395
goto V Migrate to version V
9496
up [N] Apply all or N up migrations
95-
down [N] Apply all or N down migrations
96-
drop Drop everything inside database
97+
down [N] [-all] Apply all or N down migrations
98+
Use -all to apply all down migrations
99+
drop [-f] Drop everything inside database
100+
Use -f to bypass confirmation
97101
force V Set version V but don't run migration (ignores dirty state)
98102
version Print current migration version
99103
```

0 commit comments

Comments
 (0)