diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-09-23 10:12:40 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-09-23 10:12:40 -0400 |
commit | e4a15076f458be1416de25b2c45578975b914de5 (patch) | |
tree | 0c8a91d17ee2546ee9de969ede2e979c5a4f5a52 /store/sql_user_store.go | |
parent | 0391e5fe96d922f1e4a6ca2418a871ba1e88c9d2 (diff) | |
download | chat-e4a15076f458be1416de25b2c45578975b914de5.tar.gz chat-e4a15076f458be1416de25b2c45578975b914de5.tar.bz2 chat-e4a15076f458be1416de25b2c45578975b914de5.zip |
Implement UI theme colors.
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 2 |
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() { |