@@ -13,6 +13,7 @@ import (
|
|||||||
// It should be maitained in chronological order with most current
|
// It should be maitained 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{
|
||||||
|
"4.3.0",
|
||||||
"4.2.0",
|
"4.2.0",
|
||||||
"4.1.0",
|
"4.1.0",
|
||||||
"4.0.0",
|
"4.0.0",
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
|
|||||||
UpgradeDatabaseToVersion40(sqlStore)
|
UpgradeDatabaseToVersion40(sqlStore)
|
||||||
UpgradeDatabaseToVersion41(sqlStore)
|
UpgradeDatabaseToVersion41(sqlStore)
|
||||||
UpgradeDatabaseToVersion42(sqlStore)
|
UpgradeDatabaseToVersion42(sqlStore)
|
||||||
|
UpgradeDatabaseToVersion43(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.
|
||||||
@@ -303,8 +304,7 @@ func UpgradeDatabaseToVersion42(sqlStore SqlStore) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpgradeDatabaseToVersion43(sqlStore SqlStore) {
|
func UpgradeDatabaseToVersion43(sqlStore SqlStore) {
|
||||||
// TODO: Uncomment following condition when version 4.3.0 is released
|
if shouldPerformUpgrade(sqlStore, VERSION_4_2_0, VERSION_4_3_0) {
|
||||||
//if shouldPerformUpgrade(sqlStore, VERSION_4_2_0, VERSION_4_3_0) {
|
saveSchemaVersion(sqlStore, VERSION_4_3_0)
|
||||||
// saveSchemaVersion(sqlStore, VERSION_4_3_0)
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user