aboutsummaryrefslogtreecommitdiffstats
path: root/internal/commands/migrate.go
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-10 22:41:38 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-10 22:41:38 -0500
commitfd4a08f7fce1a0085b30ebffe53b3a886b70dd76 (patch)
tree136ee92b694fb46e1ce8e93029af1ad450061282 /internal/commands/migrate.go
parenttweak env/docker compose file (diff)
downloadcli-fd4a08f7fce1a0085b30ebffe53b3a886b70dd76.zip
Add downgrade command and rename migrate to upgrade
Diffstat (limited to 'internal/commands/migrate.go')
-rw-r--r--internal/commands/migrate.go16
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{},