From d9b4bae0a8c73b6f8540b839eef83d540eb96663 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 11 Sep 2024 13:29:25 +0530 Subject: [PATCH] Rename migration to v4.0.0 --- cmd/upgrade.go | 2 +- internal/migrations/{v3.1.0.go => v4.0.0.go} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename internal/migrations/{v3.1.0.go => v4.0.0.go} (98%) diff --git a/cmd/upgrade.go b/cmd/upgrade.go index 5c42ee39..5dff6597 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -38,7 +38,7 @@ var migList = []migFunc{ {"v2.4.0", migrations.V2_4_0}, {"v2.5.0", migrations.V2_5_0}, {"v3.0.0", migrations.V3_0_0}, - {"v3.1.0", migrations.V3_1_0}, + {"v4.0.0", migrations.V4_0_0}, } // upgrade upgrades the database to the current version by running SQL migration files diff --git a/internal/migrations/v3.1.0.go b/internal/migrations/v4.0.0.go similarity index 98% rename from internal/migrations/v3.1.0.go rename to internal/migrations/v4.0.0.go index 0690277f..9cf49208 100644 --- a/internal/migrations/v3.1.0.go +++ b/internal/migrations/v4.0.0.go @@ -13,8 +13,8 @@ import ( "github.com/lib/pq" ) -// V3_1_0 performs the DB migrations. -func V3_1_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error { +// V4_0_0 performs the DB migrations. +func V4_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error { if _, err := db.Exec(` CREATE EXTENSION IF NOT EXISTS pgcrypto;