Uncomment upgrade for 3.9 (#6336)
* Uncomment upgrade for 3.9 * Add 3.9.0 to model/version.go
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ea60d4695b
Коммит
52b5c74a0f
@@ -13,6 +13,7 @@ import (
|
||||
// It should be maitained in chronological order with most current
|
||||
// release at the front of the list.
|
||||
var versions = []string{
|
||||
"3.9.0",
|
||||
"3.8.0",
|
||||
"3.7.0",
|
||||
"3.6.0",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user