* upgrade db to 5.9

* Prepare db upgrade to 5.10
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2019-02-19 15:20:37 +01:00
коммит произвёл Joram Wilander
родитель 29060acb45
Коммит 4646c38295
2 изменённых файлов: 10 добавлений и 3 удалений

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

@@ -13,6 +13,7 @@ import (
// It should be maintained in chronological order with most current
// release at the front of the list.
var versions = []string{
"5.9.0",
"5.8.0",
"5.7.0",
"5.6.0",

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

@@ -97,6 +97,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
UpgradeDatabaseToVersion57(sqlStore)
UpgradeDatabaseToVersion58(sqlStore)
UpgradeDatabaseToVersion59(sqlStore)
UpgradeDatabaseToVersion510(sqlStore)
// If the SchemaVersion is empty this this is the first time it has ran
// so lets set it to the current version.
@@ -568,9 +569,14 @@ func UpgradeDatabaseToVersion58(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion59(sqlStore SqlStore) {
// TODO: Uncomment following condition when version 5.9.0 is released
// if shouldPerformUpgrade(sqlStore, VERSION_5_8_0, VERSION_5_9_0) {
if shouldPerformUpgrade(sqlStore, VERSION_5_8_0, VERSION_5_9_0) {
saveSchemaVersion(sqlStore, VERSION_5_9_0)
}
}
// saveSchemaVersion(sqlStore, VERSION_5_9_0)
func UpgradeDatabaseToVersion510(sqlStore SqlStore) {
// if shouldPerformUpgrade(sqlStore, VERSION_5_9_0, VERSION_5_10_0) {
// saveSchemaVersion(sqlStore, VERSION_5_10_0)
// }
}