summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-19 22:00:01 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-19 22:00:01 -0600
commit8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96 (patch)
treeed96e0aff323aaf7a45d38896ea6a929dc320500 /store
parent36c5c46e24f745ee80b49f47363217fcb740ce53 (diff)
downloadchat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.gz
chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.bz2
chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.zip
PLT-7 Adding translation function to context
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 32332ad92..0f73f73c3 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -37,6 +37,7 @@ func NewSqlUserStore(sqlStore *SqlStore) UserStore {
table.ColMap("Props").SetMaxSize(4000)
table.ColMap("NotifyProps").SetMaxSize(2000)
table.ColMap("ThemeProps").SetMaxSize(2000)
+ table.ColMap("Locale").SetMaxSize(5)
table.SetUniqueTogether("Email", "TeamId")
table.SetUniqueTogether("Username", "TeamId")
}
@@ -45,6 +46,7 @@ func NewSqlUserStore(sqlStore *SqlStore) UserStore {
}
func (us SqlUserStore) UpgradeSchemaIfNeeded() {
+ us.CreateColumnIfNotExists("Users", "Locale", "varchar(5)", "character varying(5)", model.DEFAULT_LOCALE) // Added After 1.4
}
func (us SqlUserStore) CreateIndexesIfNotExists() {