-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql,backupccl: set system table user ID columns to be NOT NULL #98958
sql,backupccl: set system table user ID columns to be NOT NULL #98958
Conversation
b062dcf
to
c59d196
Compare
4b82578
to
af43e9e
Compare
This patch adds the EmptyRole, which is used within some system tables. It also assigns this role the fixed ID of 0. Release note: None
Release note: None
This patch updates the `RESTORE` logic for the `system.privileges` table to handle restoring a backup that was created before the new `user_id` column was added. Release note: None
This patch updates the `RESTORE` logic for the `system.database_role_settings` table to handle restoring a backup that was created before the new `role_id` column was added. Release note: None
This patch updates the `RESTORE` logic for the `system.external_connections` table to handle restoring a backup that was created before the new `owner_id` column was added. Release note: None
af43e9e
to
649104b
Compare
Release note: None
This patch sets the user ID columns in system tables to be NOT NULL and when applicable, updates the migrations that added the columns. Release note: None
649104b
to
d3268f9
Compare
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.
thanks for breaking this down into small commits. it made it very easy to follow. lgtm!
could use a sign-off from the DR team as well.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @knz, @rhu713, and @stevendanna)
very nice, thank you 💯 |
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.
LGTM! Thanks!
TFTRs! bors r=rafiss,stevendanna |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
This PR sets the user ID columns in system tables to be NOT NULL
and when applicable, updates the
RESTORE
logic to account forthe case where a backup may have been created before the user ID
column was added.
Part of #87079
Release note: None