Skip to content

Commit

Permalink
Remove System Users from Users table if they are mistakenly added early
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythicaeda committed Sep 28, 2023
1 parent baf34d4 commit 42536fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/hasura/migrations/AerieMerlin/19_users/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ comment on column merge_request.requester_username is e''
comment on column merge_request.reviewer_username is e''
'The user who reviews this merge request. Is empty until the request enters review.';

-- REMOVE SYSTEM USERS IF THEY WERE MISTAKENLY ADDED ABOVE
delete from metadata.users
where username = 'Aerie Legacy' or username = 'Mission Model';

-- UPDATE USERS ALLOWED ROLES
insert into metadata.users_allowed_roles(username, allowed_role)
select u.username, roles.role
Expand Down

0 comments on commit 42536fa

Please sign in to comment.