uncomment upgrade for 4.1 (#7128)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
5132c62d15
Коммит
dcaed2c8e3
@@ -13,6 +13,7 @@ import (
|
|||||||
// It should be maitained in chronological order with most current
|
// It should be maitained 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.1.0",
|
||||||
"4.0.0",
|
"4.0.0",
|
||||||
"3.10.0",
|
"3.10.0",
|
||||||
"3.9.0",
|
"3.9.0",
|
||||||
|
|||||||
@@ -281,15 +281,14 @@ func UpgradeDatabaseToVersion40(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpgradeDatabaseToVersion41(sqlStore SqlStore) {
|
func UpgradeDatabaseToVersion41(sqlStore SqlStore) {
|
||||||
// TODO: Uncomment following condition when version 4.1.0 is released
|
if shouldPerformUpgrade(sqlStore, VERSION_4_0_0, VERSION_4_1_0) {
|
||||||
// if shouldPerformUpgrade(sqlStore, VERSION_4_0_0, VERSION_4_1_0) {
|
// Increase maximum length of the Users table Roles column.
|
||||||
|
if sqlStore.GetMaxLengthOfColumnIfExists("Users", "Roles") != "256" {
|
||||||
|
sqlStore.AlterColumnTypeIfExists("Users", "Roles", "varchar(256)", "varchar(256)")
|
||||||
|
}
|
||||||
|
|
||||||
// Increase maximum length of the Users table Roles column.
|
sqlStore.RemoveTableIfExists("JobStatuses")
|
||||||
if sqlStore.GetMaxLengthOfColumnIfExists("Users", "Roles") != "256" {
|
|
||||||
sqlStore.AlterColumnTypeIfExists("Users", "Roles", "varchar(256)", "varchar(256)")
|
saveSchemaVersion(sqlStore, VERSION_4_1_0)
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlStore.RemoveTableIfExists("JobStatuses")
|
|
||||||
// saveSchemaVersion(sqlStore, VERSION_4_1_0)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user