summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-04 19:40:11 -0400
committerGitHub <noreply@github.com>2017-05-04 19:40:11 -0400
commit52b5c74a0f0a5cee8577976b46928c7fe3a45979 (patch)
treeb581c33306580bdf87de1e0fd178756944bf6768 /store
parentea60d4695b5ef871a77a60b515643c098ad8491a (diff)
downloadchat-52b5c74a0f0a5cee8577976b46928c7fe3a45979.tar.gz
chat-52b5c74a0f0a5cee8577976b46928c7fe3a45979.tar.bz2
chat-52b5c74a0f0a5cee8577976b46928c7fe3a45979.zip
Uncomment upgrade for 3.9 (#6336)
* Uncomment upgrade for 3.9 * Add 3.9.0 to model/version.go
Diffstat (limited to 'store')
-rw-r--r--store/sql_upgrade.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index f708f15c5..bf291c345 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -255,11 +255,10 @@ func UpgradeDatabaseToVersion38(sqlStore *SqlStore) {
}
func UpgradeDatabaseToVersion39(sqlStore *SqlStore) {
- // TODO: Uncomment following condition when version 3.9.0 is released
- //if shouldPerformUpgrade(sqlStore, VERSION_3_8_0, VERSION_3_9_0) {
- sqlStore.CreateColumnIfNotExists("OAuthAccessData", "Scope", "varchar(128)", "varchar(128)", model.DEFAULT_SCOPE)
- sqlStore.RemoveTableIfExists("PasswordRecovery")
+ if shouldPerformUpgrade(sqlStore, VERSION_3_8_0, VERSION_3_9_0) {
+ sqlStore.CreateColumnIfNotExists("OAuthAccessData", "Scope", "varchar(128)", "varchar(128)", model.DEFAULT_SCOPE)
+ sqlStore.RemoveTableIfExists("PasswordRecovery")
- // saveSchemaVersion(sqlStore, VERSION_3_9_0)
- //}
+ saveSchemaVersion(sqlStore, VERSION_3_9_0)
+ }
}