summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-09-04 15:42:43 +0200
committerGitHub <noreply@github.com>2018-09-04 15:42:43 +0200
commitd2190527eafdae31e14ba0832dcfb79a0a1e223b (patch)
tree73ca240796e9c4bef4ef2324a1b1c24b7cfc0c67
parentb98ef658ad217fafe98af088f516746860b2a7b8 (diff)
downloadchat-d2190527eafdae31e14ba0832dcfb79a0a1e223b.tar.gz
chat-d2190527eafdae31e14ba0832dcfb79a0a1e223b.tar.bz2
chat-d2190527eafdae31e14ba0832dcfb79a0a1e223b.zip
Uncomment upgrade for 5.3.0 (#9354)
* Uncomment upgrade for 5.3.0 * add missing version
-rw-r--r--model/version.go1
-rw-r--r--store/sqlstore/upgrade.go8
2 files changed, 4 insertions, 5 deletions
diff --git a/model/version.go b/model/version.go
index d8753b3b1..6e45211af 100644
--- a/model/version.go
+++ b/model/version.go
@@ -13,6 +13,7 @@ import (
// It should be maintained in chronological order with most current
// release at the front of the list.
var versions = []string{
+ "5.3.0",
"5.2.0",
"5.1.0",
"5.0.0",
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index ab3bd202b..cd45dfcb3 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -484,9 +484,7 @@ func UpgradeDatabaseToVersion52(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion53(sqlStore SqlStore) {
- // TODO: Uncomment following condition when version 5.3.0 is released
- // if shouldPerformUpgrade(sqlStore, VERSION_5_2_0, VERSION_5_3_0) {
-
- // saveSchemaVersion(sqlStore, VERSION_5_3_0)
- // }
+ if shouldPerformUpgrade(sqlStore, VERSION_5_2_0, VERSION_5_3_0) {
+ saveSchemaVersion(sqlStore, VERSION_5_3_0)
+ }
}