diff options
author | George Goldberg <george@gberg.me> | 2017-04-05 13:17:42 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-04-05 08:17:42 -0400 |
commit | 22005f876f455c50c131f6c0660d50b6974598a5 (patch) | |
tree | 35ea163a31c7a64adf023b7a080f2940d3a66eff /store | |
parent | 481d0a8af7a9d9cfdfbcb76ea07c2dafb8b588fc (diff) | |
download | chat-22005f876f455c50c131f6c0660d50b6974598a5.tar.gz chat-22005f876f455c50c131f6c0660d50b6974598a5.tar.bz2 chat-22005f876f455c50c131f6c0660d50b6974598a5.zip |
Uncomment 3.8 database upgrade. (#5992)
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_upgrade.go | 12 |
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) + } } |