uncomment upgrade for 4.1 (#7128)

This commit is contained in:
Saturnino Abril
2017-08-08 08:48:01 -04:00
committed by Joram Wilander
parent 5132c62d15
commit dcaed2c8e3
2 changed files with 9 additions and 9 deletions
+1
View File
@@ -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{
"4.1.0",
"4.0.0",
"3.10.0",
"3.9.0",
+8 -9
View File
@@ -281,15 +281,14 @@ func UpgradeDatabaseToVersion40(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.
if sqlStore.GetMaxLengthOfColumnIfExists("Users", "Roles") != "256" {
sqlStore.AlterColumnTypeIfExists("Users", "Roles", "varchar(256)", "varchar(256)")
sqlStore.RemoveTableIfExists("JobStatuses")
saveSchemaVersion(sqlStore, VERSION_4_1_0)
}
sqlStore.RemoveTableIfExists("JobStatuses")
// saveSchemaVersion(sqlStore, VERSION_4_1_0)
// }
}