()
| 430 | } |
| 431 | |
| 432 | func getMigrateCommand() cli.Command { |
| 433 | return cli.Command{ |
| 434 | Name: "migrate", |
| 435 | ShortName: "mig", |
| 436 | Usage: "Manage migrations", |
| 437 | Subcommands: []cli.Command{ |
| 438 | getMigrateWithPostMigrationEventSubcommand("up", "Migrate to the most recent version"), |
| 439 | getMigrateWithPostMigrationEventSubcommand("up-by-one", "Migrate one version up"), |
| 440 | getMigrateWithPostMigrationEventSubcommand("up-to", "Migrate up to specific version"), |
| 441 | getMigrateSubcommand("create", "Create a template for a new migration"), |
| 442 | getMigrateSubcommand("create-next", "Create a sequential template for a new migration"), |
| 443 | getCreateInitialMigrationSubcommand(), |
| 444 | getMigrateSubcommand("down", "Migrate to the oldest version"), |
| 445 | getMigrateSubcommand("down-to", "Migrate to specific version"), |
| 446 | getMigrateSubcommand("redo", "Migrate one version back"), |
| 447 | getMigrateSubcommand("status", "Display migration status"), |
| 448 | getMigrateSubcommand("version", "Display migration version"), |
| 449 | }, |
| 450 | Action: actionMigrateHelp(), |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | func getCreateInitialMigrationSubcommand() cli.Command { |
| 455 | return cli.Command{ |
no test coverage detected