From 987360f325d02db931b532e3a17fdd15d0199913 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Tue, 30 Apr 2019 13:24:40 -0400 Subject: [PATCH] team: Updates maximum length of AllowedDomains to 1000 characters. (#10700) We have several different e-mail domains for a team and recently ran into a length issue while adding an additional one. I did a little bit of searching and it looks like the only limit is in the ORM mapping code (here). The column data type seems to be TEXT. --- store/sqlstore/team_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/sqlstore/team_store.go b/store/sqlstore/team_store.go index a2e92d8820..90620a27a6 100644 --- a/store/sqlstore/team_store.go +++ b/store/sqlstore/team_store.go @@ -153,7 +153,7 @@ func NewSqlTeamStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) st table.ColMap("Description").SetMaxSize(255) table.ColMap("Email").SetMaxSize(128) table.ColMap("CompanyName").SetMaxSize(64) - table.ColMap("AllowedDomains").SetMaxSize(500) + table.ColMap("AllowedDomains").SetMaxSize(1000) table.ColMap("InviteId").SetMaxSize(32) tablem := db.AddTableWithName(teamMember{}, "TeamMembers").SetKeys(false, "TeamId", "UserId")