summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-02-05 18:11:31 -0500
committerGitHub <noreply@github.com>2018-02-05 18:11:31 -0500
commit323d717a402c4407ca14c8b94b5eebf861ccf44a (patch)
treecc19ca68f7c5781191c5da00a69769659a306527 /store
parentd5d1834c041d5c676a556965dc98299eef750c9c (diff)
downloadchat-323d717a402c4407ca14c8b94b5eebf861ccf44a.tar.gz
chat-323d717a402c4407ca14c8b94b5eebf861ccf44a.tar.bz2
chat-323d717a402c4407ca14c8b94b5eebf861ccf44a.zip
Uncomment upgrade code for 4.7 (#8201)
Diffstat (limited to 'store')
-rw-r--r--store/sqlstore/upgrade.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go
index 7f38e3a73..0de91f28b 100644
--- a/store/sqlstore/upgrade.go
+++ b/store/sqlstore/upgrade.go
@@ -341,8 +341,8 @@ func UpgradeDatabaseToVersion46(sqlStore SqlStore) {
}
func UpgradeDatabaseToVersion47(sqlStore SqlStore) {
- // if shouldPerformUpgrade(sqlStore, VERSION_4_6_0, VERSION_4_7_0) {
- sqlStore.AlterColumnTypeIfExists("Users", "Position", "varchar(128)", "varchar(128)")
- // saveSchemaVersion(sqlStore, VERSION_4_7_0)
- // }
+ if shouldPerformUpgrade(sqlStore, VERSION_4_6_0, VERSION_4_7_0) {
+ sqlStore.AlterColumnTypeIfExists("Users", "Position", "varchar(128)", "varchar(128)")
+ saveSchemaVersion(sqlStore, VERSION_4_7_0)
+ }
}