summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-06-13 10:33:38 +0200
committerGitHub <noreply@github.com>2018-06-13 10:33:38 +0200
commit2f0fe81da198bc048ef347b988b2e097cdd49c6b (patch)
treea48e4a3c972ebbf5077d1ca8d9e1f71cf60dce37 /store
parent656c8a62d145fc565e9a98e060329239d2d59fbd (diff)
downloadchat-2f0fe81da198bc048ef347b988b2e097cdd49c6b.tar.gz
chat-2f0fe81da198bc048ef347b988b2e097cdd49c6b.tar.bz2
chat-2f0fe81da198bc048ef347b988b2e097cdd49c6b.zip
Add preparatory upgrade code for 5.1.0 (#8920)
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 8356ef17f..65c2c11e2 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_5_1_0 = "5.1.0"
VERSION_5_0_0 = "5.0.0"
VERSION_4_10_0 = "4.10.0"
VERSION_4_9_0 = "4.9.0"
@@ -78,6 +79,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion49(sqlStore)
UpgradeDatabaseToVersion410(sqlStore)
UpgradeDatabaseToVersion50(sqlStore)
+ UpgradeDatabaseToVersion51(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -447,3 +449,11 @@ func UpgradeDatabaseToVersion50(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_5_0_0)
}
}
+
+func UpgradeDatabaseToVersion51(sqlStore SqlStore) {
+ // TODO: Uncomment following condition when version 5.1.0 is released
+ // if shouldPerformUpgrade(sqlStore, VERSION_5_0_0, VERSION_5_1_0) {
+
+ // saveSchemaVersion(sqlStore, VERSION_5_1_0)
+ // }
+}