Skip to content

Commit

Permalink
feat: add deleted_at column to related_configs_recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Sep 12, 2024
1 parent 203f9fb commit a724d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions query/config_relations.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type RelatedConfig struct {
CostTotal30d *float64 `json:"cost_total_30d,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
AgentID uuid.UUID `json:"agent_id"`
Status *string `json:"status" gorm:"default:null"`
Ready bool `json:"ready"`
Expand Down
2 changes: 2 additions & 0 deletions views/006_config_views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ CREATE FUNCTION related_configs_recursive (
cost_total_30d NUMERIC(16, 4),
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
deleted_at TIMESTAMP WITH TIME ZONE,
agent_id uuid,
health TEXT,
ready BOOLEAN,
Expand Down Expand Up @@ -624,6 +625,7 @@ BEGIN
configs.cost_total_30d,
configs.created_at,
configs.updated_at,
configs.deleted_at,
configs.agent_id,
configs.health,
configs.ready,
Expand Down

0 comments on commit a724d00

Please sign in to comment.