Skip to content

Commit

Permalink
enhance: Add AlterDatabase proto (#276)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 authored Apr 26, 2024
1 parent 58707ef commit 1dc8199
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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

0 comments on commit 1dc8199

Please sign in to comment.