From d066d46f6e8235fc7ac58429d1bc686d9d85e70d Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 10 Oct 2024 22:30:46 +0800 Subject: [PATCH] chore: tweak schema version --- server/version/version.go | 4 ++-- .../prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} | 0 .../prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} | 0 .../prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} | 0 test/store/migrator_test.go | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename store/migration/mysql/prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} (100%) rename store/migration/postgres/prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} (100%) rename store/migration/sqlite/prod/{0.22/04__reactions.sql => 0.23/00__reactions.sql} (100%) diff --git a/server/version/version.go b/server/version/version.go index eccaa395..34ee57a3 100644 --- a/server/version/version.go +++ b/server/version/version.go @@ -9,10 +9,10 @@ import ( // Version is the service current released version. // Semantic versioning: https://semver.org/ -var Version = "0.22.6" +var Version = "0.23.0" // DevVersion is the service current development version. -var DevVersion = "0.22.6" +var DevVersion = "0.23.0" func GetCurrentVersion(mode string) string { if mode == "dev" || mode == "demo" { diff --git a/store/migration/mysql/prod/0.22/04__reactions.sql b/store/migration/mysql/prod/0.23/00__reactions.sql similarity index 100% rename from store/migration/mysql/prod/0.22/04__reactions.sql rename to store/migration/mysql/prod/0.23/00__reactions.sql diff --git a/store/migration/postgres/prod/0.22/04__reactions.sql b/store/migration/postgres/prod/0.23/00__reactions.sql similarity index 100% rename from store/migration/postgres/prod/0.22/04__reactions.sql rename to store/migration/postgres/prod/0.23/00__reactions.sql diff --git a/store/migration/sqlite/prod/0.22/04__reactions.sql b/store/migration/sqlite/prod/0.23/00__reactions.sql similarity index 100% rename from store/migration/sqlite/prod/0.22/04__reactions.sql rename to store/migration/sqlite/prod/0.23/00__reactions.sql diff --git a/test/store/migrator_test.go b/test/store/migrator_test.go index 059f5a69..f2488882 100644 --- a/test/store/migrator_test.go +++ b/test/store/migrator_test.go @@ -13,5 +13,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) { currentSchemaVersion, err := ts.GetCurrentSchemaVersion() require.NoError(t, err) - require.Equal(t, "0.22.5", currentSchemaVersion) + require.Equal(t, "0.23.1", currentSchemaVersion) }