-
Notifications
You must be signed in to change notification settings - Fork 937
chore: remove organization_id suffix from org_member roles in database #13473
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f7d22ea
5bd1280
01a492e
3949498
bd4d483
356099b
cf93307
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE ONLY organization_members ALTER COLUMN roles SET DEFAULT '{organization-member}'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- The default was 'organization-member', but we imply that in the | ||
-- 'GetAuthorizationUserRoles' query. | ||
ALTER TABLE ONLY organization_members ALTER COLUMN roles SET DEFAULT '{}'; | ||
|
||
-- No one should be using organization roles yet. If they are, the names in the | ||
-- database are now incorrect. Just remove them all. | ||
UPDATE organization_members SET roles = '{}'; | ||
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. another good thing to call out |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required, but added as a safety check to catch dev errors from using the previous
rolename:<org_id>
syntax