Uncomment upgrade for 4.10 (#8727)
* uncomment upgrade code * ping jenkins * add 4.10.0 to version.go
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fc513a9e61
Коммит
e555b7454d
@@ -13,6 +13,7 @@ import (
|
|||||||
// It should be maintained in chronological order with most current
|
// It should be maintained in chronological order with most current
|
||||||
// release at the front of the list.
|
// release at the front of the list.
|
||||||
var versions = []string{
|
var versions = []string{
|
||||||
|
"4.10.0",
|
||||||
"4.9.0",
|
"4.9.0",
|
||||||
"4.8.1",
|
"4.8.1",
|
||||||
"4.8.0",
|
"4.8.0",
|
||||||
|
|||||||
@@ -411,14 +411,13 @@ func UpgradeDatabaseToVersion49(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpgradeDatabaseToVersion410(sqlStore SqlStore) {
|
func UpgradeDatabaseToVersion410(sqlStore SqlStore) {
|
||||||
// TODO: Uncomment following condition when version 4.10.0 is released
|
if shouldPerformUpgrade(sqlStore, VERSION_4_9_0, VERSION_4_10_0) {
|
||||||
//if shouldPerformUpgrade(sqlStore, VERSION_4_9_0, VERSION_4_10_0) {
|
|
||||||
|
|
||||||
sqlStore.RemoveIndexIfExists("Name_2", "Channels")
|
sqlStore.RemoveIndexIfExists("Name_2", "Channels")
|
||||||
sqlStore.RemoveIndexIfExists("Name_2", "Emoji")
|
sqlStore.RemoveIndexIfExists("Name_2", "Emoji")
|
||||||
sqlStore.RemoveIndexIfExists("ClientId_2", "OAuthAccessData")
|
sqlStore.RemoveIndexIfExists("ClientId_2", "OAuthAccessData")
|
||||||
|
|
||||||
// saveSchemaVersion(sqlStore, VERSION_4_10_0)
|
saveSchemaVersion(sqlStore, VERSION_4_10_0)
|
||||||
sqlStore.GetMaster().Exec("UPDATE Users SET AuthData=LOWER(AuthData) WHERE AuthService = 'saml'")
|
sqlStore.GetMaster().Exec("UPDATE Users SET AuthData=LOWER(AuthData) WHERE AuthService = 'saml'")
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user