summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-07-06 22:07:27 +0800
committerGitHub <noreply@github.com>2017-07-06 22:07:27 +0800
commit3d382cfa0e01938a24578602777325fe7fccd0c1 (patch)
tree3d50e762732a342303a429c58956fb9fc56b2cf8
parentd64d1f4029505f48bb86035a557e2f4229e55443 (diff)
downloadchat-3d382cfa0e01938a24578602777325fe7fccd0c1.tar.gz
chat-3d382cfa0e01938a24578602777325fe7fccd0c1.tar.bz2
chat-3d382cfa0e01938a24578602777325fe7fccd0c1.zip
Uncomment upgrade for 4.0 (#6844)
-rw-r--r--model/version.go1
-rw-r--r--store/sql_upgrade.go8
2 files changed, 4 insertions, 5 deletions
diff --git a/model/version.go b/model/version.go
index 63b114001..c40869d0d 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.0.0",
"3.10.0",
"3.9.0",
"3.8.0",
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index ef255c5c2..463415851 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -272,9 +272,7 @@ func UpgradeDatabaseToVersion310(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion40(sqlStore SqlStore) {
- // TODO: Uncomment following condition when version 4.0.0 is released
- //if shouldPerformUpgrade(sqlStore, VERSION_3_10_0, VERSION_4_0_0) {
-
- // saveSchemaVersion(sqlStore, VERSION_4_0_0)
- //}
+ if shouldPerformUpgrade(sqlStore, VERSION_3_10_0, VERSION_4_0_0) {
+ saveSchemaVersion(sqlStore, VERSION_4_0_0)
+ }
}