Skip to content

Commit 16ec5ad

Browse files
committed
Delete stats after 6 months
1 parent cee514d commit 16ec5ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaceagentstats.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ORDER BY
9090
date ASC;
9191

9292
-- name: DeleteOldWorkspaceAgentStats :exec
93-
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '30 days';
93+
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '6 months';
9494

9595
-- name: GetDeploymentWorkspaceAgentStats :one
9696
WITH agent_stats AS (

0 commit comments

Comments
 (0)