fix: implement fake DeleteOldWorkspaceAgentStats (#11076)

This commit is contained in:
Marcin Tojek
2023-12-07 14:08:16 +01:00
committed by GitHub
parent c0d68a4c2c
commit 941e3873a8
4 changed files with 69 additions and 4 deletions
@@ -90,7 +90,7 @@ ORDER BY
date ASC;
-- name: DeleteOldWorkspaceAgentStats :exec
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '6 months';
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '180 days';
-- name: GetDeploymentWorkspaceAgentStats :one
WITH agent_stats AS (