summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-04 13:10:16 -0700
committerGitHub <noreply@github.com>2017-10-04 13:10:16 -0700
commitda368539e37c0521cddc673d089bd863d0db3026 (patch)
tree4d28c9d92bfc5b5ab5ec493027475245973b7b27
parent07777f5ff9e0bde26abd0288164e5f73b6da992a (diff)
downloadchat-da368539e37c0521cddc673d089bd863d0db3026.tar.gz
chat-da368539e37c0521cddc673d089bd863d0db3026.tar.bz2
chat-da368539e37c0521cddc673d089bd863d0db3026.zip
4.3 pre-cut (#7569)
* 4.3 pre-cut * fix
-rw-r--r--model/version.go1
-rw-r--r--store/sqlstore/upgrade.go8
2 files changed, 5 insertions, 4 deletions
diff --git a/model/version.go b/model/version.go
index eaac69e74..3a1f218b4 100644
--- a/model/version.go
+++ b/model/version.go
@@ -13,6 +13,7 @@ import (
// It should be maitained in chronological order with most current
// release at the front of the list.
var versions = []string{
+ "4.3.0",
"4.2.0",
"4.1.0",
"4.0.0",
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index 1973536f6..64d5b0763 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -55,6 +55,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion40(sqlStore)
UpgradeDatabaseToVersion41(sqlStore)
UpgradeDatabaseToVersion42(sqlStore)
+ UpgradeDatabaseToVersion43(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -303,8 +304,7 @@ func UpgradeDatabaseToVersion42(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion43(sqlStore SqlStore) {
- // TODO: Uncomment following condition when version 4.3.0 is released
- //if shouldPerformUpgrade(sqlStore, VERSION_4_2_0, VERSION_4_3_0) {
- // saveSchemaVersion(sqlStore, VERSION_4_3_0)
- //}
+ if shouldPerformUpgrade(sqlStore, VERSION_4_2_0, VERSION_4_3_0) {
+ saveSchemaVersion(sqlStore, VERSION_4_3_0)
+ }
}