- Notifications
You must be signed in to change notification settings - Fork928
chore: add prebuilds system user#16916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from9 commits
300e80f
b788237
8122595
bfb7c28
6639167
769ae1d
e7e9c27
3936047
8bdcafb
324fde2
81d9dfa
896c881
de4fb8a
2751d5b
1042c39
f9e9d11
7492965
29e2020
8c51585
cdc5c71
0d4813a
95d70a3
8f1d71c
7e009e5
addd7c6
7a4ef24
f30ce72
5f0ae5e
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-- Remove system user from organizations | ||
DELETE FROM organization_members | ||
WHERE user_id = 'c42fdf75-3097-471c-8c33-fb52454d81c0'; | ||
-- Drop triggers first | ||
DROP TRIGGER IF EXISTS prevent_system_user_updates ON users; | ||
DROP TRIGGER IF EXISTS prevent_system_user_deletions ON users; | ||
-- Drop function | ||
DROP FUNCTION IF EXISTS prevent_system_user_changes(); | ||
-- Delete user status changes | ||
DELETE FROM user_status_changes | ||
WHERE user_id = 'c42fdf75-3097-471c-8c33-fb52454d81c0'; | ||
-- Delete system user | ||
DELETE FROM users | ||
WHERE id = 'c42fdf75-3097-471c-8c33-fb52454d81c0'; | ||
-- Drop index | ||
DROP INDEX IF EXISTS user_is_system_idx; | ||
-- Drop column | ||
ALTER TABLE users DROP COLUMN IF EXISTS is_system; |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.