mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
CurrentSchemaVersion = Version5370
|
||||
CurrentSchemaVersion = Version5380
|
||||
Version5380 = "5.38.0"
|
||||
Version5370 = "5.37.0"
|
||||
Version5360 = "5.36.0"
|
||||
@@ -1216,13 +1216,12 @@ func upgradeDatabaseToVersion537(sqlStore *SqlStore) {
|
||||
}
|
||||
|
||||
func upgradeDatabaseToVersion538(sqlStore *SqlStore) {
|
||||
// TODO: uncomment when the time arrive to upgrade the DB for 5.38
|
||||
// if shouldPerformUpgrade(sqlStore, Version5370, Version5380) {
|
||||
fixCRTChannelMembershipCounts(sqlStore)
|
||||
fixCRTThreadCountsAndUnreads(sqlStore)
|
||||
if shouldPerformUpgrade(sqlStore, Version5370, Version5380) {
|
||||
fixCRTChannelMembershipCounts(sqlStore)
|
||||
fixCRTThreadCountsAndUnreads(sqlStore)
|
||||
|
||||
// saveSchemaVersion(sqlStore, Version5380)
|
||||
// }
|
||||
saveSchemaVersion(sqlStore, Version5380)
|
||||
}
|
||||
}
|
||||
|
||||
// fixCRTThreadCountsAndUnreads Marks threads as read for users where the last
|
||||
|
||||
Reference in New Issue
Block a user