summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorDerrick Anderson <derrick@andersonwebstudio.com>2018-05-08 09:27:37 -0400
committerGitHub <noreply@github.com>2018-05-08 09:27:37 -0400
commitc1853c7f40dd67c49524c8ea884ab61883a6abdd (patch)
treee1dfd00b5e0279359d81b7aa5f752b8125d4383c /store
parent6c3d1fc1f8125493c07e2cfb6bbec02c6c5c9728 (diff)
downloadchat-c1853c7f40dd67c49524c8ea884ab61883a6abdd.tar.gz
chat-c1853c7f40dd67c49524c8ea884ab61883a6abdd.tar.bz2
chat-c1853c7f40dd67c49524c8ea884ab61883a6abdd.zip
prep code for 5.0 (#8743)
Diffstat (limited to 'store')
-rw-r--r--store/sqlstore/upgrade.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index 562c36bf1..45515178d 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_5_0_0 = "5.0.0"
VERSION_4_10_0 = "4.10.0"
VERSION_4_9_0 = "4.9.0"
VERSION_4_8_1 = "4.8.1"
@@ -76,6 +77,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion481(sqlStore)
UpgradeDatabaseToVersion49(sqlStore)
UpgradeDatabaseToVersion410(sqlStore)
+ UpgradeDatabaseToVersion50(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -421,3 +423,10 @@ func UpgradeDatabaseToVersion410(sqlStore SqlStore) {
sqlStore.GetMaster().Exec("UPDATE Users SET AuthData=LOWER(AuthData) WHERE AuthService = 'saml'")
}
}
+
+func UpgradeDatabaseToVersion50(sqlStore SqlStore) {
+ // TODO: Uncomment following condition when version 3.10.0 is released
+ //if shouldPerformUpgrade(sqlStore, VERSION_4_10_0, VERSION_5_0_0) {
+ // saveSchemaVersion(sqlStore, VERSION_5_0_0)
+ //}
+}