From 79f1c1d44c2d607e656b0339a1382df2681488c7 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Mon, 26 Nov 2018 14:58:12 +0100 Subject: [PATCH] Add preparatory upgrade code for 5.7.0 (#9881) --- store/sqlstore/upgrade.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index 61dc994561..d340b17169 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_5_7_0 = "5.7.0" VERSION_5_6_0 = "5.6.0" VERSION_5_5_0 = "5.5.0" VERSION_5_4_0 = "5.4.0" @@ -90,6 +91,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion54(sqlStore) UpgradeDatabaseToVersion55(sqlStore) UpgradeDatabaseToVersion56(sqlStore) + UpgradeDatabaseToVersion57(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -532,3 +534,11 @@ func UpgradeDatabaseToVersion56(sqlStore SqlStore) { } } + +func UpgradeDatabaseToVersion57(sqlStore SqlStore) { + // TODO: Uncomment following condition when version 5.5.0 is released + // if shouldPerformUpgrade(sqlStore, VERSION_5_6_0, VERSION_5_7_0) { + + // saveSchemaVersion(sqlStore, VERSION_5_7_0) + // } +}