From 22005f876f455c50c131f6c0660d50b6974598a5 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Wed, 5 Apr 2017 13:17:42 +0100 Subject: Uncomment 3.8 database upgrade. (#5992) --- store/sql_upgrade.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'store/sql_upgrade.go') diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go index 551a021ec..549f684bb 100644 --- a/store/sql_upgrade.go +++ b/store/sql_upgrade.go @@ -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) + } } -- cgit v1.2.3-1-g7c22