IAM: Generate a unique name for a new TeamBinding object (#112525)

* generate a unique name for TeamBinding and store it in the uid column

* generate testdata

* fix team binding name
This commit is contained in:
Mihai Doarna
2025-10-21 15:01:49 +03:00
committed by GitHub
parent a651fb1348
commit 7d88b0130c
28 changed files with 81 additions and 81 deletions
@@ -1,5 +1,5 @@
INSERT INTO {{ .Ident .TeamMemberTable }}
(team_id, user_id, org_id, created, updated, external, permission)
(uid, team_id, user_id, org_id, created, updated, external, permission)
VALUES
({{ .Arg .Command.TeamID }}, {{ .Arg .Command.UserID }}, {{ .Arg .Command.OrgID }}, {{ .Arg .Command.Created }},
({{ .Arg .Command.UID }}, {{ .Arg .Command.TeamID }}, {{ .Arg .Command.UserID }}, {{ .Arg .Command.OrgID }}, {{ .Arg .Command.Created }},
{{ .Arg .Command.Updated }}, {{ .Arg .Command.External }}, {{ .Arg .Command.Permission }})