* upgrade to 48

* fix upgrade bug
Этот коммит содержится в:
Derrick Anderson
2018-03-05 14:50:10 -05:00
коммит произвёл GitHub
родитель 2782602c6e
Коммит a3320e0ce3
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@@ -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",

Просмотреть файл

@@ -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)
}
}