diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2016-12-01 23:23:28 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-12-01 17:23:28 -0500 |
commit | c51afba71a8d4614f74709d5e9c432c2cff3fcf7 (patch) | |
tree | 8b2ad4586123c5a7bab8c44f91dd8eebbfaea674 /store/sql_team_store.go | |
parent | 8c18da21f3e51421a0dc6fbd4be1fa1e838dd482 (diff) | |
download | chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.tar.gz chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.tar.bz2 chat-c51afba71a8d4614f74709d5e9c432c2cff3fcf7.zip |
Add Team Description to the Team Settings (#4652)
* draft
* Add Team Description to the Team Settings
* add tooltips for team description
* made changes per PM review
* add message when there is no description set in the team
* squash
Diffstat (limited to 'store/sql_team_store.go')
-rw-r--r-- | store/sql_team_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_team_store.go b/store/sql_team_store.go index 00f1f5c61..3ec336be5 100644 --- a/store/sql_team_store.go +++ b/store/sql_team_store.go @@ -27,6 +27,7 @@ func NewSqlTeamStore(sqlStore *SqlStore) TeamStore { table.ColMap("Id").SetMaxSize(26) table.ColMap("DisplayName").SetMaxSize(64) table.ColMap("Name").SetMaxSize(64).SetUnique(true) + table.ColMap("Description").SetMaxSize(255) table.ColMap("Email").SetMaxSize(128) table.ColMap("CompanyName").SetMaxSize(64) table.ColMap("AllowedDomains").SetMaxSize(500) @@ -43,6 +44,7 @@ func NewSqlTeamStore(sqlStore *SqlStore) TeamStore { func (s SqlTeamStore) CreateIndexesIfNotExists() { s.CreateIndexIfNotExists("idx_teams_name", "Teams", "Name") + s.CreateIndexIfNotExists("idx_teams_description", "Teams", "Description") s.CreateIndexIfNotExists("idx_teams_invite_id", "Teams", "InviteId") s.CreateIndexIfNotExists("idx_teams_update_at", "Teams", "UpdateAt") s.CreateIndexIfNotExists("idx_teams_create_at", "Teams", "CreateAt") |