From fd4a08f7fce1a0085b30ebffe53b3a886b70dd76 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 10 Jan 2024 22:41:38 -0500 Subject: Add downgrade command and rename migrate to upgrade --- internal/commands/migrate.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'internal/commands/migrate.go') 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{}, -- cgit v1.2.3