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.
Этот коммит содержится в:
John Bellone
2019-04-30 13:24:40 -04:00
коммит произвёл Jesús Espino
родитель 0d0d758208
Коммит 987360f325

Просмотреть файл

@@ -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")