Uncomment upgrade code to 4.8 (#8409)

* upgrade to 48

* fix upgrade bug
This commit is contained in:
Derrick Anderson
2018-03-05 14:50:10 -05:00
committed by GitHub
parent 2782602c6e
commit a3320e0ce3
2 changed files with 4 additions and 4 deletions

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.8.0",
"4.7.1",
"4.7.0",
"4.6.0",

View File

@@ -365,8 +365,7 @@ func UpgradeDatabaseToVersion471(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion48(sqlStore SqlStore) {
//TODO: Uncomment the following condition when version 4.8.0 is released
//if shouldPerformUpgrade(sqlStore, VERSION_4_7_0, VERSION_4_8_0) {
// saveSchemaVersion(sqlStore, VERSION_4_8_0)
//}
if shouldPerformUpgrade(sqlStore, VERSION_4_7_1, VERSION_4_8_0) {
saveSchemaVersion(sqlStore, VERSION_4_8_0)
}
}