mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: implement delete organization member (#13589)
Side effects of removing an organization member will orphan their user resources. These side effects are not addressed here
This commit is contained in:
@ -36,6 +36,15 @@ INSERT INTO
|
||||
VALUES
|
||||
($1, $2, $3, $4, $5) RETURNING *;
|
||||
|
||||
-- name: DeleteOrganizationMember :exec
|
||||
DELETE
|
||||
FROM
|
||||
organization_members
|
||||
WHERE
|
||||
organization_id = @organization_id AND
|
||||
user_id = @user_id
|
||||
;
|
||||
|
||||
|
||||
-- name: GetOrganizationIDsByMemberIDs :many
|
||||
SELECT
|
||||
|
Reference in New Issue
Block a user