summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-09 15:39:21 +0000
committerGitHub <noreply@github.com>2017-03-09 15:39:21 +0000
commit844ba7c494e9dffd7527aea5b5699c5e2e1814af (patch)
tree8bb11f8f5d295ca37cfe7d907508eac0bed5d947 /store
parent19ec4c42989df53279a1e7fe8dc997244ffbb20c (diff)
downloadchat-844ba7c494e9dffd7527aea5b5699c5e2e1814af.tar.gz
chat-844ba7c494e9dffd7527aea5b5699c5e2e1814af.tar.bz2
chat-844ba7c494e9dffd7527aea5b5699c5e2e1814af.zip
Add new database schema version ready for 3.8. (#5697)
Diffstat (limited to 'store')
-rw-r--r--store/sql_upgrade.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index 1402c0eb1..66579e823 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -15,6 +15,7 @@ import (
)
const (
+ VERSION_3_8_0 = "3.8.0"
VERSION_3_7_0 = "3.7.0"
VERSION_3_6_0 = "3.6.0"
VERSION_3_5_0 = "3.5.0"
@@ -41,6 +42,7 @@ func UpgradeDatabase(sqlStore *SqlStore) {
UpgradeDatabaseToVersion35(sqlStore)
UpgradeDatabaseToVersion36(sqlStore)
UpgradeDatabaseToVersion37(sqlStore)
+ UpgradeDatabaseToVersion38(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -240,3 +242,11 @@ func UpgradeDatabaseToVersion37(sqlStore *SqlStore) {
saveSchemaVersion(sqlStore, VERSION_3_7_0)
}
}
+
+func UpgradeDatabaseToVersion38(sqlStore *SqlStore) {
+ // TODO: Uncomment following condition when version 3.8.0 is released
+ // if shouldPerformUpgrade(sqlStore, VERSION_3_7_0, VERSION_3_8_0) {
+
+ // saveSchemaVersion(sqlStore, VERSION_3_8_0)
+ // }
+}