()
| 11 | type RedoCommand struct{} |
| 12 | |
| 13 | func (*RedoCommand) Help() string { |
| 14 | helpText := ` |
| 15 | Usage: sql-migrate redo [options] ... |
| 16 | |
| 17 | Reapply the last migration. |
| 18 | |
| 19 | Options: |
| 20 | |
| 21 | -config=dbconfig.yml Configuration file to use. |
| 22 | -env="development" Environment. |
| 23 | -dryrun Don't apply migrations, just print them. |
| 24 | |
| 25 | ` |
| 26 | return strings.TrimSpace(helpText) |
| 27 | } |
| 28 | |
| 29 | func (*RedoCommand) Synopsis() string { |
| 30 | return "Reapply the last migration" |