mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
db: upgrade DB to 5.26 (#15068)
This commit is contained in:
committed by
GitHub
parent
4a2715974d
commit
06b8b2ae4a
@@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
CURRENT_SCHEMA_VERSION = VERSION_5_25_0
|
||||
CURRENT_SCHEMA_VERSION = VERSION_5_26_0
|
||||
VERSION_5_26_0 = "5.26.0"
|
||||
VERSION_5_25_0 = "5.25.0"
|
||||
VERSION_5_24_0 = "5.24.0"
|
||||
@@ -815,10 +815,9 @@ func upgradeDatabaseToVersion525(sqlStore SqlStore) {
|
||||
}
|
||||
|
||||
func upgradeDatabaseToVersion526(sqlStore SqlStore) {
|
||||
// TODO: uncomment when the time arrive to upgrade the DB for 5.26
|
||||
//if shouldPerformUpgrade(sqlStore, VERSION_5_25_0, VERSION_5_26_0) {
|
||||
sqlStore.CreateColumnIfNotExists("Sessions", "ExpiredNotify", "boolean", "boolean", "0")
|
||||
if shouldPerformUpgrade(sqlStore, VERSION_5_25_0, VERSION_5_26_0) {
|
||||
sqlStore.CreateColumnIfNotExists("Sessions", "ExpiredNotify", "boolean", "boolean", "0")
|
||||
|
||||
//saveSchemaVersion(sqlStore, VERSION_5_26_0)
|
||||
//}
|
||||
saveSchemaVersion(sqlStore, VERSION_5_26_0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user