upgrade database to 5.10.0 (#10507)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
50ef597a69
Коммит
3c8975780d
@@ -13,6 +13,7 @@ import (
|
||||
// It should be maintained in chronological order with most current
|
||||
// release at the front of the list.
|
||||
var versions = []string{
|
||||
"5.10.0",
|
||||
"5.9.0",
|
||||
"5.8.0",
|
||||
"5.7.0",
|
||||
|
||||
@@ -19,6 +19,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
VERSION_5_10_0 = "5.10.0"
|
||||
VERSION_5_9_0 = "5.9.0"
|
||||
VERSION_5_8_0 = "5.8.0"
|
||||
VERSION_5_7_0 = "5.7.0"
|
||||
@@ -612,7 +613,7 @@ func UpgradeDatabaseToVersion59(sqlStore SqlStore) {
|
||||
}
|
||||
|
||||
func UpgradeDatabaseToVersion510(sqlStore SqlStore) {
|
||||
// if shouldPerformUpgrade(sqlStore, VERSION_5_9_0, VERSION_5_10_0) {
|
||||
if shouldPerformUpgrade(sqlStore, VERSION_5_9_0, VERSION_5_10_0) {
|
||||
|
||||
// Grant new bot permissions to the system admin. Ideally we'd use the RoleStore directly,
|
||||
// but it uses the new supplier model, which isn't initialized in the UpgradeDatabase code
|
||||
@@ -637,6 +638,6 @@ func UpgradeDatabaseToVersion510(sqlStore SqlStore) {
|
||||
sqlStore.CreateColumnIfNotExistsNoDefault("Channels", "GroupConstrained", "tinyint(4)", "boolean")
|
||||
sqlStore.CreateColumnIfNotExistsNoDefault("Teams", "GroupConstrained", "tinyint(4)", "boolean")
|
||||
|
||||
// saveSchemaVersion(sqlStore, VERSION_5_10_0)
|
||||
// }
|
||||
saveSchemaVersion(sqlStore, VERSION_5_10_0)
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user