diff --git a/proto/common.proto b/proto/common.proto index b6ea672..6d0e2b5 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -399,6 +399,7 @@ enum ObjectPrivilege { PrivilegeListAliases = 47; PrivilegeUpdateResourceGroups = 48; + PrivilegeAlterDatabase = 49; } message PrivilegeExt { diff --git a/proto/milvus.proto b/proto/milvus.proto index 8aa0396..01dac50 100644 --- a/proto/milvus.proto +++ b/proto/milvus.proto @@ -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) {} } @@ -1829,7 +1830,7 @@ 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; @@ -1837,6 +1838,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;