summaryrefslogtreecommitdiffstats
path: root/store/sql_upgrade.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-04-05 13:17:42 +0100
committerChristopher Speller <crspeller@gmail.com>2017-04-05 08:17:42 -0400
commit22005f876f455c50c131f6c0660d50b6974598a5 (patch)
tree35ea163a31c7a64adf023b7a080f2940d3a66eff /store/sql_upgrade.go
parent481d0a8af7a9d9cfdfbcb76ea07c2dafb8b588fc (diff)
downloadchat-22005f876f455c50c131f6c0660d50b6974598a5.tar.gz
chat-22005f876f455c50c131f6c0660d50b6974598a5.tar.bz2
chat-22005f876f455c50c131f6c0660d50b6974598a5.zip
Uncomment 3.8 database upgrade. (#5992)
Diffstat (limited to 'store/sql_upgrade.go')
-rw-r--r--store/sql_upgrade.go12
1 files changed, 5 insertions, 7 deletions
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)
+ }
}