From 08a469a00637de3768b63bccc86fe0b62f3a90bf Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 7 Apr 2017 16:37:02 +0100 Subject: Prepare database upgrade function for v3.9 (#6004) --- 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 549f684bb..175c1342e 100644 --- a/store/sql_upgrade.go +++ b/store/sql_upgrade.go @@ -15,6 +15,7 @@ import ( ) const ( + VERSION_3_9_0 = "3.9.0" VERSION_3_8_0 = "3.8.0" VERSION_3_7_0 = "3.7.0" VERSION_3_6_0 = "3.6.0" @@ -43,6 +44,7 @@ func UpgradeDatabase(sqlStore *SqlStore) { UpgradeDatabaseToVersion36(sqlStore) UpgradeDatabaseToVersion37(sqlStore) UpgradeDatabaseToVersion38(sqlStore) + UpgradeDatabaseToVersion39(sqlStore) // If the SchemaVersion is empty this this is the first time it has ran // so lets set it to the current version. @@ -251,3 +253,11 @@ func UpgradeDatabaseToVersion38(sqlStore *SqlStore) { saveSchemaVersion(sqlStore, VERSION_3_8_0) } } + +func UpgradeDatabaseToVersion39(sqlStore *SqlStore) { + // TODO: Uncomment following condition when version 3.9.0 is released + //if shouldPerformUpgrade(sqlStore, VERSION_3_8_0, VERSION_3_9_0) { + + // saveSchemaVersion(sqlStore, VERSION_3_9_0) + //} +} -- cgit v1.2.3-1-g7c22