Skip to content

Commit

Permalink
PMM-12375 make version nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Sep 27, 2023
1 parent 4983e2d commit e36b218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion managed/models/service_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Service struct {
ReplicationSet string `reform:"replication_set"`
CustomLabels []byte `reform:"custom_labels"`
ExternalGroup string `reform:"external_group"`
Version string `reform:"version"`
Version *string `reform:"version"`
CreatedAt time.Time `reform:"created_at"`
UpdatedAt time.Time `reform:"updated_at"`

Expand Down
2 changes: 1 addition & 1 deletion managed/services/agents/service_info_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func updateServiceVersion(ctx context.Context, q *reform.Querier, resp agentpb.A
}

l.Debugf("Updating service version: %s.", version)
service.Version = version
service.Version = &version
if err := q.Update(service); err != nil {
return errors.Wrap(err, "failed to update service version")
}
Expand Down

0 comments on commit e36b218

Please sign in to comment.