diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-10 22:41:38 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-10 22:41:38 -0500 |
| commit | fd4a08f7fce1a0085b30ebffe53b3a886b70dd76 (patch) | |
| tree | 136ee92b694fb46e1ce8e93029af1ad450061282 /internal/commands/migrate.go | |
| parent | tweak env/docker compose file (diff) | |
| download | cli-fd4a08f7fce1a0085b30ebffe53b3a886b70dd76.zip | |
Add downgrade command and rename migrate to upgrade
Diffstat (limited to 'internal/commands/migrate.go')
| -rw-r--r-- | internal/commands/migrate.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/commands/migrate.go b/internal/commands/migrate.go index 7c7a228..8c86291 100644 --- a/internal/commands/migrate.go +++ b/internal/commands/migrate.go @@ -13,20 +13,20 @@ import ( "github.com/google/subcommands" ) -type MigrateCmd struct{} +type UpgradeCmd struct{} -func (*MigrateCmd) Name() string { return "migrate" } +func (*UpgradeCmd) Name() string { return "upgrade" } -func (*MigrateCmd) Synopsis() string { return "Migrate the database to the latest migration." } -func (*MigrateCmd) Usage() string { - return `migrate: - Migrate the database to the latest migration. +func (*UpgradeCmd) Synopsis() string { return "Upgrade the database to the latest migration." } +func (*UpgradeCmd) Usage() string { + return `upgrade: + Upgrade the database to the latest migration. ` } -func (m *MigrateCmd) SetFlags(f *flag.FlagSet) {} +func (m *UpgradeCmd) SetFlags(f *flag.FlagSet) {} -func (m *MigrateCmd) Execute( +func (m *UpgradeCmd) Execute( _ context.Context, f *flag.FlagSet, _ ...interface{}, |