Этот коммит содержится в:
Carlos Tadeu Panato Junior
2019-03-26 21:06:40 +01:00
коммит произвёл GitHub
родитель dd3c7b2f0e
Коммит 7b35242ad9

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

@@ -19,6 +19,7 @@ import (
)
const (
VERSION_5_11_0 = "5.11.0"
VERSION_5_10_0 = "5.10.0"
VERSION_5_9_0 = "5.9.0"
VERSION_5_8_0 = "5.8.0"
@@ -103,6 +104,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion58(sqlStore)
UpgradeDatabaseToVersion59(sqlStore)
UpgradeDatabaseToVersion510(sqlStore)
UpgradeDatabaseToVersion511(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -641,3 +643,11 @@ func UpgradeDatabaseToVersion510(sqlStore SqlStore) {
saveSchemaVersion(sqlStore, VERSION_5_10_0)
}
}
func UpgradeDatabaseToVersion511(sqlStore SqlStore) {
// TODO: Uncomment following condition when version 5.11.0 is released
// if shouldPerformUpgrade(sqlStore, VERSION_5_10_0, VERSION_5_11_0) {
// saveSchemaVersion(sqlStore, VERSION_5_11_0)
// }
}