MCPcopy Create free account
hub / github.com/cloudwan/gohan / getMigrateCommand

Function getMigrateCommand

cli/cli.go:432–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430}
431
432func 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
454func getCreateInitialMigrationSubcommand() cli.Command {
455 return cli.Command{

Callers 1

RunFunction · 0.85

Tested by

no test coverage detected