| 10 | type UpCommand struct{} |
| 11 | |
| 12 | func (*UpCommand) Help() string { |
| 13 | helpText := ` |
| 14 | Usage: sql-migrate up [options] ... |
| 15 | |
| 16 | Migrates the database to the most recent version available. |
| 17 | |
| 18 | Options: |
| 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 | |
| 30 | func (*UpCommand) Synopsis() string { |
| 31 | return "Migrates the database to the most recent version available" |