summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-23 14:38:34 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-23 14:38:34 -0700
commit7f3bfdbe0c2442714bb5a14adfdeac1576123601 (patch)
tree44962a914b86cf66a1da49300f12986db49f010e /store
parent1626a6de6f16ba0878160b0a7eae9f49b8d34d4f (diff)
parentc7c644874e98db0ae83c5a44ec50ff811d9b3f46 (diff)
downloadchat-7f3bfdbe0c2442714bb5a14adfdeac1576123601.tar.gz
chat-7f3bfdbe0c2442714bb5a14adfdeac1576123601.tar.bz2
chat-7f3bfdbe0c2442714bb5a14adfdeac1576123601.zip
Fixing merge
Diffstat (limited to 'store')
-rw-r--r--store/sql_user_store.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index 778df367e..3fd1c82b5 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -32,6 +32,7 @@ func NewSqlUserStore(sqlStore *SqlStore) UserStore {
table.ColMap("Roles").SetMaxSize(64)
table.ColMap("Props").SetMaxSize(4000)
table.ColMap("NotifyProps").SetMaxSize(2000)
+ table.ColMap("ThemeProps").SetMaxSize(2000)
table.SetUniqueTogether("Email", "TeamId")
table.SetUniqueTogether("Username", "TeamId")
}
@@ -40,6 +41,7 @@ func NewSqlUserStore(sqlStore *SqlStore) UserStore {
}
func (us SqlUserStore) UpgradeSchemaIfNeeded() {
+ us.CreateColumnIfNotExists("Users", "ThemeProps", "varchar(2000)", "character varying(2000)", "{}")
}
func (us SqlUserStore) CreateIndexesIfNotExists() {