From 7b35242ad99bea04f3a20cba852910c0dc80a219 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 26 Mar 2019 21:06:40 +0100 Subject: [PATCH] prepare db upgrade to 5.11 (#10510) --- store/sqlstore/upgrade.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index a9b1a8e06f..9ffa45cfa9 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -19,6 +19,7 @@ import ( ) const ( + VERSION_5_11_0 = "5.11.0" VERSION_5_10_0 = "5.10.0" VERSION_5_9_0 = "5.9.0" VERSION_5_8_0 = "5.8.0" @@ -103,6 +104,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion58(sqlStore) UpgradeDatabaseToVersion59(sqlStore) UpgradeDatabaseToVersion510(sqlStore) + UpgradeDatabaseToVersion511(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -641,3 +643,11 @@ func UpgradeDatabaseToVersion510(sqlStore SqlStore) { saveSchemaVersion(sqlStore, VERSION_5_10_0) } } + +func UpgradeDatabaseToVersion511(sqlStore SqlStore) { + // TODO: Uncomment following condition when version 5.11.0 is released + // if shouldPerformUpgrade(sqlStore, VERSION_5_10_0, VERSION_5_11_0) { + + // saveSchemaVersion(sqlStore, VERSION_5_11_0) + // } +}