Uncomment upgrade code for 4.7 (#8201)

This commit is contained in:
Joram Wilander
2018-02-05 18:11:31 -05:00
committed by GitHub
parent d5d1834c04
commit 323d717a40
2 changed files with 5 additions and 4 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.7.0",
"4.6.0",
"4.5.0",
"4.4.0",
+4 -4
View File
@@ -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)
}
}