Skip to content
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

enhance: Add AlterDatabase proto #276

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ enum ObjectPrivilege {
PrivilegeListAliases = 47;

PrivilegeUpdateResourceGroups = 48;
PrivilegeAlterDatabase = 49;
}

message PrivilegeExt {
Expand Down
13 changes: 13 additions & 0 deletions proto/milvus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ service MilvusService {
rpc CreateDatabase(CreateDatabaseRequest) returns (common.Status) {}
rpc DropDatabase(DropDatabaseRequest) returns (common.Status) {}
rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {}
rpc AlterDatabase(AlterDatabaseRequest) returns (common.Status) {}

rpc ReplicateMessage(ReplicateMessageRequest) returns (ReplicateMessageResponse) {}
}
Expand Down Expand Up @@ -1823,6 +1824,18 @@ message ListDatabasesResponse {
repeated uint64 created_timestamp = 3;
}

message AlterDatabaseRequest {
option (common.privilege_ext_obj) = {
object_type: Global
object_privilege: PrivilegeAlterDatabase
object_name_index: -1
};
common.MsgBase base = 1;
string db_name = 2;
string db_id = 3;
repeated common.KeyValuePair properties = 4;
}

message ReplicateMessageRequest {
common.MsgBase base = 1;
string channel_name = 2;
Expand Down
Loading