From 3ada7a41a7fb13abef19dd63dc56b720900dbaa9 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 13 Mar 2017 16:52:18 +0000 Subject: [PATCH] Upgrade schema for pinned posts. (#5747) --- store/sql_upgrade.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go index 66579e8235..45981c5c8e 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) // } }