summaryrefslogtreecommitdiffstats
path: root/store/sql_upgrade.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-13 16:52:18 +0000
committerJoram Wilander <jwawilander@gmail.com>2017-03-13 12:52:17 -0400
commit3ada7a41a7fb13abef19dd63dc56b720900dbaa9 (patch)
treeac6ae4643f379c81e0369e4430392f7851b073fa /store/sql_upgrade.go
parent59d06b5c56f487570867cdc8b87b2e29c04d450f (diff)
downloadchat-3ada7a41a7fb13abef19dd63dc56b720900dbaa9.tar.gz
chat-3ada7a41a7fb13abef19dd63dc56b720900dbaa9.tar.bz2
chat-3ada7a41a7fb13abef19dd63dc56b720900dbaa9.zip
Upgrade schema for pinned posts. (#5747)
Diffstat (limited to 'store/sql_upgrade.go')
-rw-r--r--store/sql_upgrade.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index 66579e823..45981c5c8 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -247,6 +247,9 @@ 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) {
+ // Add the IsPinned column to posts.
+ sqlStore.CreateColumnIfNotExists("Posts", "IsPinned", "boolean", "boolean", "0")
+
// saveSchemaVersion(sqlStore, VERSION_3_8_0)
// }
}