summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-07-07 20:52:30 +0800
committerJoram Wilander <jwawilander@gmail.com>2017-07-07 08:52:30 -0400
commit6e0f5f096986dad11ef182ddb51d4bfb0e558860 (patch)
tree3de7ac78e57d1fad191ce0e2e39c1ae7b6888458 /store
parent3d382cfa0e01938a24578602777325fe7fccd0c1 (diff)
downloadchat-6e0f5f096986dad11ef182ddb51d4bfb0e558860.tar.gz
chat-6e0f5f096986dad11ef182ddb51d4bfb0e558860.tar.bz2
chat-6e0f5f096986dad11ef182ddb51d4bfb0e558860.zip
add preparatory upgrade code for 4.1 (#6870)
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 463415851..5a6ed0ab5 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_4_1_0 = "4.1.0"
VERSION_4_0_0 = "4.0.0"
VERSION_3_10_0 = "3.10.0"
VERSION_3_9_0 = "3.9.0"
@@ -49,6 +50,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion39(sqlStore)
UpgradeDatabaseToVersion310(sqlStore)
UpgradeDatabaseToVersion40(sqlStore)
+ UpgradeDatabaseToVersion41(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -276,3 +278,10 @@ func UpgradeDatabaseToVersion40(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_4_0_0)
}
}
+
+func UpgradeDatabaseToVersion41(sqlStore SqlStore) {
+ // TODO: Uncomment following condition when version 4.0.0 is released
+ // if shouldPerformUpgrade(sqlStore, VERSION_4_0_0, VERSION_4_1_0) {
+ // saveSchemaVersion(sqlStore, VERSION_4_1_0)
+ // }
+}