Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: impl update mask for instance options (#7027)

rebelicee4119ec95048
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index 4264a40d73..0539e68024 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -197,6 +197,14 @@ func (s *InstanceService) UpdateInstance(ctx context.Context, request *v1pb.Upda
patch.DataSources = &datasourceList
case "activation":
patch.Activation = &request.Instance.Activation
+ case "options.schema_tenant_mode":
+ if patch.Options == nil {
+ patch.Options = &storepb.InstanceOptions{
+ SchemaTenantMode: request.Instance.Options.SchemaTenantMode,
+ }
+ } else {
+ patch.Options.SchemaTenantMode = request.Instance.Options.SchemaTenantMode
+ }
default:
return nil, status.Errorf(codes.InvalidArgument, `unsupport update_mask "%s"`, path)
}