Skip to content

Commit

Permalink
privilege: add REPAIRCLUSTERMETADATA system prvilege
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
rafiss committed Sep 21, 2023
1 parent 5b0f319 commit 15c2dfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/sql/privilege/kind_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pkg/sql/privilege/privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const (
CREATELOGIN Kind = 33
CREATEDB Kind = 34
CONTROLJOB Kind = 35
largestKind = CONTROLJOB
REPAIRCLUSTERMETADATA Kind = 36
largestKind = REPAIRCLUSTERMETADATA
)

var isDeprecatedKind = map[Kind]bool{
Expand Down Expand Up @@ -164,6 +165,7 @@ var (
ALL, BACKUP, RESTORE, MODIFYCLUSTERSETTING, EXTERNALCONNECTION, VIEWACTIVITY, VIEWACTIVITYREDACTED,
VIEWCLUSTERSETTING, CANCELQUERY, NOSQLLOGIN, VIEWCLUSTERMETADATA, VIEWDEBUG, EXTERNALIOIMPLICITACCESS, VIEWJOB,
MODIFYSQLCLUSTERSETTING, REPLICATION, MANAGETENANT, VIEWSYSTEMTABLE, CREATEROLE, CREATELOGIN, CREATEDB, CONTROLJOB,
REPAIRCLUSTERMETADATA,
}
VirtualTablePrivileges = List{ALL, SELECT}
ExternalConnectionPrivileges = List{ALL, USAGE, DROP}
Expand Down

0 comments on commit 15c2dfd

Please sign in to comment.