коммит произвёл
Joram Wilander
родитель
29060acb45
Коммит
4646c38295
@@ -13,6 +13,7 @@ import (
|
|||||||
// It should be maintained in chronological order with most current
|
// It should be maintained in chronological order with most current
|
||||||
// release at the front of the list.
|
// release at the front of the list.
|
||||||
var versions = []string{
|
var versions = []string{
|
||||||
|
"5.9.0",
|
||||||
"5.8.0",
|
"5.8.0",
|
||||||
"5.7.0",
|
"5.7.0",
|
||||||
"5.6.0",
|
"5.6.0",
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
|
|||||||
UpgradeDatabaseToVersion57(sqlStore)
|
UpgradeDatabaseToVersion57(sqlStore)
|
||||||
UpgradeDatabaseToVersion58(sqlStore)
|
UpgradeDatabaseToVersion58(sqlStore)
|
||||||
UpgradeDatabaseToVersion59(sqlStore)
|
UpgradeDatabaseToVersion59(sqlStore)
|
||||||
|
UpgradeDatabaseToVersion510(sqlStore)
|
||||||
|
|
||||||
// If the SchemaVersion is empty this this is the first time it has ran
|
// If the SchemaVersion is empty this this is the first time it has ran
|
||||||
// so lets set it to the current version.
|
// so lets set it to the current version.
|
||||||
@@ -568,9 +569,14 @@ func UpgradeDatabaseToVersion58(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpgradeDatabaseToVersion59(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)
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user