Hide build logs older than 30 days (#4436)

This commit is contained in:
Ammar Bandukwala
2022-10-09 20:01:18 +00:00
committed by GitHub
parent dd5173b45c
commit eefc26c108
12 changed files with 113 additions and 66 deletions
+2 -1
View File
@@ -30,13 +30,14 @@ WHERE
workspace_id = $1
AND build_number = $2;
-- name: GetWorkspaceBuildByWorkspaceID :many
-- name: GetWorkspaceBuildsByWorkspaceID :many
SELECT
*
FROM
workspace_builds
WHERE
workspace_builds.workspace_id = $1
AND workspace_builds.created_at > @since
AND CASE
-- This allows using the last element on a page as effectively a cursor.
-- This is an important option for scripts that need to paginate without