Unverified Commit 323d717a authored by Joram Wilander's avatar Joram Wilander Committed by GitHub
Browse files

Uncomment upgrade code for 4.7 (#8201)

parent d5d1834c
......@@ -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.7.0",
"4.6.0",
"4.5.0",
"4.4.0",
......
......@@ -341,8 +341,8 @@ func UpgradeDatabaseToVersion46(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion47(sqlStore SqlStore) {
// if shouldPerformUpgrade(sqlStore, VERSION_4_6_0, VERSION_4_7_0) {
sqlStore.AlterColumnTypeIfExists("Users", "Position", "varchar(128)", "varchar(128)")
// saveSchemaVersion(sqlStore, VERSION_4_7_0)
// }
if shouldPerformUpgrade(sqlStore, VERSION_4_6_0, VERSION_4_7_0) {
sqlStore.AlterColumnTypeIfExists("Users", "Position", "varchar(128)", "varchar(128)")
saveSchemaVersion(sqlStore, VERSION_4_7_0)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment