mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 05:35:43 +01:00
c163bc8317
The following information should cleanup before delete user: Delete project member of this user. Delete oidc_user when auth_mode is oidc_auth. Fixes #8424 It also removes the deleted user from project member and the deleted condition in the project member query for consistency Signed-off-by: stonezdj <stonezdj@gmail.com>
2 lines
196 B
SQL
2 lines
196 B
SQL
/* cleanup deleted user project members */
|
|
DELETE FROM project_member pm WHERE pm.entity_type = 'u' AND EXISTS (SELECT NULL FROM harbor_user u WHERE pm.entity_id = u.user_id AND u.deleted = true ) |