From 2f0fe81da198bc048ef347b988b2e097cdd49c6b Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 13 Jun 2018 10:33:38 +0200 Subject: Add preparatory upgrade code for 5.1.0 (#8920) --- store/sqlstore/upgrade.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'store') diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index 8356ef17f..65c2c11e2 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_5_1_0 = "5.1.0" VERSION_5_0_0 = "5.0.0" VERSION_4_10_0 = "4.10.0" VERSION_4_9_0 = "4.9.0" @@ -78,6 +79,7 @@ func UpgradeDatabase(sqlStore SqlStore) { UpgradeDatabaseToVersion49(sqlStore) UpgradeDatabaseToVersion410(sqlStore) UpgradeDatabaseToVersion50(sqlStore) + UpgradeDatabaseToVersion51(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -447,3 +449,11 @@ func UpgradeDatabaseToVersion50(sqlStore SqlStore) { saveSchemaVersion(sqlStore, VERSION_5_0_0) } } + +func UpgradeDatabaseToVersion51(sqlStore SqlStore) { + // TODO: Uncomment following condition when version 5.1.0 is released + // if shouldPerformUpgrade(sqlStore, VERSION_5_0_0, VERSION_5_1_0) { + + // saveSchemaVersion(sqlStore, VERSION_5_1_0) + // } +} -- cgit v1.2.3-1-g7c22