summaryrefslogtreecommitdiffstats
path: root/store/sql_upgrade.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-07 12:44:28 +0000
committerGitHub <noreply@github.com>2017-03-07 12:44:28 +0000
commit378f02b445514a6e2ef89261c1e189feacf10315 (patch)
tree839b6d74e2a3d4ee52397abd7873da342854583a /store/sql_upgrade.go
parentd2325d4bcfa22505e02a544616facedec4f56c28 (diff)
downloadchat-378f02b445514a6e2ef89261c1e189feacf10315.tar.gz
chat-378f02b445514a6e2ef89261c1e189feacf10315.tar.bz2
chat-378f02b445514a6e2ef89261c1e189feacf10315.zip
Update schema for version 3.7. (#5674)
Diffstat (limited to 'store/sql_upgrade.go')
-rw-r--r--store/sql_upgrade.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/store/sql_upgrade.go b/store/sql_upgrade.go
index 9ee8f08e2..d3e8b46c6 100644
--- a/store/sql_upgrade.go
+++ b/store/sql_upgrade.go
@@ -15,7 +15,7 @@ import (
)
const (
- VERIONS_3_7_0 = "3.7.0"
+ VERSION_3_7_0 = "3.7.0"
VERSION_3_6_0 = "3.6.0"
VERSION_3_5_0 = "3.5.0"
VERSION_3_4_0 = "3.4.0"
@@ -233,9 +233,8 @@ func UpgradeDatabaseToVersion36(sqlStore *SqlStore) {
}
func UpgradeDatabaseToVersion37(sqlStore *SqlStore) {
- // TODO: Uncomment following condition when version 3.7.0 is released
- // if shouldPerformUpgrade(sqlStore, VERSION_3_6_0, VERSION_3_7_0) {
- // Add EditAt column to Posts
- sqlStore.CreateColumnIfNotExists("Posts", "EditAt", " bigint", " bigint", "0")
- // }
+ if shouldPerformUpgrade(sqlStore, VERSION_3_6_0, VERSION_3_7_0) {
+ // Add EditAt column to Posts
+ sqlStore.CreateColumnIfNotExists("Posts", "EditAt", " bigint", " bigint", "0")
+ }
}