mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Uncomment 3.8 database upgrade. (#5992)
This commit is contained in:
committed by
Christopher Speller
parent
481d0a8af7
commit
22005f876f
@@ -244,12 +244,10 @@ func UpgradeDatabaseToVersion37(sqlStore *SqlStore) {
|
||||
}
|
||||
|
||||
func UpgradeDatabaseToVersion38(sqlStore *SqlStore) {
|
||||
// TODO: Uncomment following condition when version 3.8.0 is released
|
||||
// if shouldPerformUpgrade(sqlStore, VERSION_3_7_0, VERSION_3_8_0) {
|
||||
if shouldPerformUpgrade(sqlStore, VERSION_3_7_0, VERSION_3_8_0) {
|
||||
// Add the IsPinned column to posts.
|
||||
sqlStore.CreateColumnIfNotExists("Posts", "IsPinned", "boolean", "boolean", "0")
|
||||
|
||||
// Add the IsPinned column to posts.
|
||||
sqlStore.CreateColumnIfNotExists("Posts", "IsPinned", "boolean", "boolean", "0")
|
||||
|
||||
// saveSchemaVersion(sqlStore, VERSION_3_8_0)
|
||||
// }
|
||||
saveSchemaVersion(sqlStore, VERSION_3_8_0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user