summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-08-08 11:35:51 +0200
committerGitHub <noreply@github.com>2018-08-08 11:35:51 +0200
commit935f0c5ff9a7e3dea3db70f4df59d0db52543f29 (patch)
tree8fd34f402fa09b5a4ecfa9a6f898d7ea9e472fb3 /store
parent9bf01f1401ed47afc4fc443974e2bd4db50b2f50 (diff)
downloadchat-935f0c5ff9a7e3dea3db70f4df59d0db52543f29.tar.gz
chat-935f0c5ff9a7e3dea3db70f4df59d0db52543f29.tar.bz2
chat-935f0c5ff9a7e3dea3db70f4df59d0db52543f29.zip
Add preparatory upgrade code for 5.3.0 (#9224)
Diffstat (limited to 'store')
-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 cc4e5a0cc..ab3bd202b 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_5_3_0 = "5.3.0"
VERSION_5_2_0 = "5.2.0"
VERSION_5_1_0 = "5.1.0"
VERSION_5_0_0 = "5.0.0"
@@ -82,6 +83,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion50(sqlStore)
UpgradeDatabaseToVersion51(sqlStore)
UpgradeDatabaseToVersion52(sqlStore)
+ UpgradeDatabaseToVersion53(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -480,3 +482,11 @@ func UpgradeDatabaseToVersion52(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_5_2_0)
}
}
+
+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)
+ // }
+}