mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
add preparatory upgrade code for 4.1 (#6870)
This commit is contained in:
committed by
Joram Wilander
parent
3d382cfa0e
commit
6e0f5f0969
@@ -15,6 +15,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
VERSION_4_1_0 = "4.1.0"
|
||||
VERSION_4_0_0 = "4.0.0"
|
||||
VERSION_3_10_0 = "3.10.0"
|
||||
VERSION_3_9_0 = "3.9.0"
|
||||
@@ -49,6 +50,7 @@ func UpgradeDatabase(sqlStore SqlStore) {
|
||||
UpgradeDatabaseToVersion39(sqlStore)
|
||||
UpgradeDatabaseToVersion310(sqlStore)
|
||||
UpgradeDatabaseToVersion40(sqlStore)
|
||||
UpgradeDatabaseToVersion41(sqlStore)
|
||||
|
||||
// If the SchemaVersion is empty this this is the first time it has ran
|
||||
// so lets set it to the current version.
|
||||
@@ -276,3 +278,10 @@ func UpgradeDatabaseToVersion40(sqlStore SqlStore) {
|
||||
saveSchemaVersion(sqlStore, VERSION_4_0_0)
|
||||
}
|
||||
}
|
||||
|
||||
func UpgradeDatabaseToVersion41(sqlStore SqlStore) {
|
||||
// TODO: Uncomment following condition when version 4.0.0 is released
|
||||
// if shouldPerformUpgrade(sqlStore, VERSION_4_0_0, VERSION_4_1_0) {
|
||||
// saveSchemaVersion(sqlStore, VERSION_4_1_0)
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user