summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-12-08 11:12:09 -0800
committerChristopher Speller <crspeller@gmail.com>2017-12-08 11:12:09 -0800
commitae931ae6b63047d3a5362ab217ebdcf4ecaa6cb8 (patch)
treeb9644ce7df0f822925c7276308baf24072de0547
parent39cf3a998ddcb7ba34ec04b075c6d301d5605ac3 (diff)
downloadchat-ae931ae6b63047d3a5362ab217ebdcf4ecaa6cb8.tar.gz
chat-ae931ae6b63047d3a5362ab217ebdcf4ecaa6cb8.tar.bz2
chat-ae931ae6b63047d3a5362ab217ebdcf4ecaa6cb8.zip
Add upgrade code for 4.6
-rw-r--r--store/sqlstore/upgrade.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index 9bb3250d6..4d6985033 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_4_6_0 = "4.6.0"
VERSION_4_5_0 = "4.5.0"
VERSION_4_4_0 = "4.4.0"
VERSION_4_3_0 = "4.3.0"
@@ -60,6 +61,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion43(sqlStore)
UpgradeDatabaseToVersion44(sqlStore)
UpgradeDatabaseToVersion45(sqlStore)
+ UpgradeDatabaseToVersion46(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -322,6 +324,14 @@ func UpgradeDatabaseToVersion44(sqlStore SqlStore) {
}
}
+func UpgradeDatabaseToVersion46(sqlStore SqlStore) {
+ //TODO: Uncomment folowing when version 4.6 is released
+ //if shouldPerformUpgrade(sqlStore, VERSION_4_5_0, VERSION_4_6_0) {
+
+ //saveSchemaVersion(sqlStore, VERSION_4_6_0)
+ //}
+}
+
func UpgradeDatabaseToVersion45(sqlStore SqlStore) {
if shouldPerformUpgrade(sqlStore, VERSION_4_4_0, VERSION_4_5_0) {
saveSchemaVersion(sqlStore, VERSION_4_5_0)