From 0a8071b1ce9b929573c52f7192b2bceb3338e0a4 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 9 Jun 2017 12:10:09 -0400 Subject: Add preparatory upgrade code for 4.0 (#6616) --- store/sql_upgrade.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'store') diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go index 180af43a0..11b726712 100644 --- a/store/sql_upgrade.go +++ b/store/sql_upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_4_0_0 = "4.0.0" VERSION_3_10_0 = "3.10.0" VERSION_3_9_0 = "3.9.0" VERSION_3_8_0 = "3.8.0" @@ -47,6 +48,7 @@ func UpgradeDatabase(sqlStore *SqlStore) { UpgradeDatabaseToVersion38(sqlStore) UpgradeDatabaseToVersion39(sqlStore) UpgradeDatabaseToVersion310(sqlStore) + UpgradeDatabaseToVersion40(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -270,3 +272,11 @@ func UpgradeDatabaseToVersion310(sqlStore *SqlStore) { saveSchemaVersion(sqlStore, VERSION_3_10_0) } } + +func UpgradeDatabaseToVersion40(sqlStore *SqlStore) { + // TODO: Uncomment following condition when version 4.0.0 is released + //if shouldPerformUpgrade(sqlStore, VERSION_3_10_0, VERSION_4_0_0) { + + // saveSchemaVersion(sqlStore, VERSION_4_0_0) + //} +} -- cgit v1.2.3-1-g7c22