summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerrick Anderson <derrick@andersonwebstudio.com>2018-02-08 12:12:48 -0500
committerGitHub <noreply@github.com>2018-02-08 12:12:48 -0500
commit1b064c674a21fbee4000fdf84fbdc75da1fab1f0 (patch)
treed27f0d8bcc6cef03148dc408ae787d80a3bc5c47
parentcf929476bdaa9a388fdfde62889bbef2a4dbf1c2 (diff)
downloadchat-1b064c674a21fbee4000fdf84fbdc75da1fab1f0.tar.gz
chat-1b064c674a21fbee4000fdf84fbdc75da1fab1f0.tar.bz2
chat-1b064c674a21fbee4000fdf84fbdc75da1fab1f0.zip
Add prepatory code for 4.8.0 (#8226)
* Add prepatory code for 4.8.0 * formatting issue * build bug
-rw-r--r--store/sqlstore/upgrade.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index 0de91f28b..bebcc262c 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_4_8_0 = "4.8.0"
VERSION_4_7_0 = "4.7.0"
VERSION_4_6_0 = "4.6.0"
VERSION_4_5_0 = "4.5.0"
@@ -64,6 +65,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion45(sqlStore)
UpgradeDatabaseToVersion46(sqlStore)
UpgradeDatabaseToVersion47(sqlStore)
+ UpgradeDatabaseToVersion48(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -346,3 +348,10 @@ func UpgradeDatabaseToVersion47(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_4_7_0)
}
}
+
+func UpgradeDatabaseToVersion48(sqlStore SqlStore) {
+ //TODO: Uncomment the following condition when version 4.8.0 is released
+ //if shouldPerformUpgrade(sqlStore, VERSION_4_7_0, VERSION_4_8_0) {
+ // saveSchemaVersion(sqlStore, VERSION_4_8_0)
+ //}
+}