diff --git a/pkg/services/sqlstore/migrations/team_mig.go b/pkg/services/sqlstore/migrations/team_mig.go index 981a4865caa..cf15d775865 100644 --- a/pkg/services/sqlstore/migrations/team_mig.go +++ b/pkg/services/sqlstore/migrations/team_mig.go @@ -37,6 +37,7 @@ func addTeamMigrations(mg *Migrator) { Indices: []*Index{ {Cols: []string{"org_id"}}, {Cols: []string{"org_id", "team_id", "user_id"}, Type: UniqueIndex}, + {Cols: []string{"team_id"}}, }, } @@ -45,6 +46,7 @@ func addTeamMigrations(mg *Migrator) { //------- indexes ------------------ mg.AddMigration("add index team_member.org_id", NewAddIndexMigration(teamMemberV1, teamMemberV1.Indices[0])) mg.AddMigration("add unique index team_member_org_id_team_id_user_id", NewAddIndexMigration(teamMemberV1, teamMemberV1.Indices[1])) + mg.AddMigration("add index team_member.team_id", NewAddIndexMigration(teamMemberV1, teamMemberV1.Indices[2])) // add column email mg.AddMigration("Add column email to team table", NewAddColumnMigration(teamV1, &Column{