summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-09 04:13:55 +0800
committerJoram Wilander <jwawilander@gmail.com>2017-08-08 16:13:55 -0400
commitc42510a7f4cf87d1dd7f7339633f06df86f25cce (patch)
treeefc80a3ef7695cf2b8c238ae29df54e7ac8be1a9 /store
parent70fe9e9e971943b108492b1814a23bd42eae8ae2 (diff)
downloadchat-c42510a7f4cf87d1dd7f7339633f06df86f25cce.tar.gz
chat-c42510a7f4cf87d1dd7f7339633f06df86f25cce.tar.bz2
chat-c42510a7f4cf87d1dd7f7339633f06df86f25cce.zip
add preparatory upgrade code for 4.2 (#7157)
Diffstat (limited to 'store')
-rw-r--r--store/sql_upgrade.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index 26ff9a164..5f4ed2a4e 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_4_2_0 = "4.2.0"
VERSION_4_1_0 = "4.1.0"
VERSION_4_0_0 = "4.0.0"
VERSION_3_10_0 = "3.10.0"
@@ -52,6 +53,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion310(sqlStore)
UpgradeDatabaseToVersion40(sqlStore)
UpgradeDatabaseToVersion41(sqlStore)
+ UpgradeDatabaseToVersion42(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -292,3 +294,10 @@ func UpgradeDatabaseToVersion41(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_4_1_0)
}
}
+
+func UpgradeDatabaseToVersion42(sqlStore SqlStore) {
+ // TODO: Uncomment following condition when version 4.1.0 is released
+ // if shouldPerformUpgrade(sqlStore, VERSION_4_1_0, VERSION_4_2_0) {
+ // saveSchemaVersion(sqlStore, VERSION_4_2_0)
+ // }
+}