Skip to content

Commit

Permalink
Partialally revert SummariseVMs to keep CloudType
Browse files Browse the repository at this point in the history
We do want to select the latest CloudType for an aggregation of Cloud
Records so that we can insert it into the CloudSummaries table as this
is useful information for seeing what script sites are publishing with.

We will keep allowing the field to be NULL in CloudSummaries though as
the CloudRecord can now be NULL.
  • Loading branch information
tofu-rocketry committed Sep 17, 2024
1 parent 421a92e commit 732d59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/cloud.sql
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ BEGIN
ThisRecord.VOGroupID as VOGroupID,
ThisRecord.VORoleID as VORoleID,
ThisRecord.Status as Status,
NULL,
ThisRecord.CloudType as CloudType,
ThisRecord.ImageId as ImageId,
ThisRecord.StartTime as StartTime,
COALESCE(ThisRecord.WallDuration - IFNULL(PrevRecord.WallDuration, 0)) AS ComputedWallDuration,
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-x.x.x-x.x.x.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BEGIN
ThisRecord.VOGroupID as VOGroupID,
ThisRecord.VORoleID as VORoleID,
ThisRecord.Status as Status,
NULL,
ThisRecord.CloudType as CloudType,
ThisRecord.ImageId as ImageId,
ThisRecord.StartTime as StartTime,
COALESCE(ThisRecord.WallDuration - IFNULL(PrevRecord.WallDuration, 0)) AS ComputedWallDuration,
Expand Down

0 comments on commit 732d59f

Please sign in to comment.