mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Hide build logs older than 30 days (#4436)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user