Skip to content

Commit

Permalink
enhance: Add AlterDatabase proto
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 committed Apr 25, 2024
1 parent a7e4eaf commit 66e7454
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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
15 changes: 14 additions & 1 deletion 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 @@ -1829,14 +1830,26 @@ message ListDatabasesRequest {
message ListDatabasesResponse {
option (common.privilege_ext_obj) = {
object_type: Global
object_privilege: PrivilegeShowCollections
object_privilege: PrivilegeListDatabases
object_name_index: -1
};
common.Status status = 1;
repeated string db_names = 2;
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 66e7454

Please sign in to comment.