MCPcopy
hub / github.com/rubenv/sql-migrate / Help

Method Help

sql-migrate/command_up.go:12–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10type UpCommand struct{}
11
12func (*UpCommand) Help() string {
13 helpText := `
14Usage: sql-migrate up [options] ...
15
16 Migrates the database to the most recent version available.
17
18Options:
19
20 -config=dbconfig.yml Configuration file to use.
21 -env="development" Environment.
22 -limit=0 Limit the number of migrations (0 = unlimited).
23 -version Run migrate up to a specific version, eg: the version number of migration 1_initial.sql is 1.
24 -dryrun Don't apply migrations, just print them.
25
26`
27 return strings.TrimSpace(helpText)
28}
29
30func (*UpCommand) Synopsis() string {
31 return "Migrates the database to the most recent version available"

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected