release / govulncheck (push) Successful in 15s
release / web (push) Failing after 17s
release / go (push) Successful in 1m13s
release / integration (push) Successful in 4m56s
release / android (push) Successful in 5m9s
release / Build signed APK (releases and dev) (push) Successful in 5m19s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Migration 0091 drops lidarr_config and renames the quarantine tables, types, indexes and the history column off the Lidarr name. The Integrations Lidarr card, the Reports "Delete via Lidarr" action, the merge and remove-track unmonitor options, the Lidarr audit actions and error codes go, on the server, web and Android. The README describes acquisition as it is now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
887 B
SQL
25 lines
887 B
SQL
-- name: WriteAuditLog :exec
|
|
INSERT INTO audit_log (actor_id, target_id, action, metadata)
|
|
VALUES ($1, $2, $3, $4);
|
|
|
|
-- name: ListAuditLog :many
|
|
SELECT * FROM audit_log
|
|
ORDER BY created_at DESC
|
|
LIMIT $1 OFFSET $2;
|
|
|
|
-- name: CountAuditLogByActions :one
|
|
-- System actions carry no actor; system_only narrows to them.
|
|
SELECT count(*)::bigint FROM audit_log
|
|
WHERE action = ANY(sqlc.arg(actions)::text[])
|
|
AND (NOT sqlc.arg(system_only)::boolean OR actor_id IS NULL);
|
|
|
|
-- name: ListAuditLogByActions :many
|
|
-- One page of the given actions, newest first: the duplicates report's
|
|
-- "resolved automatically" activity (M498) reads the resolver's merges from
|
|
-- here.
|
|
SELECT * FROM audit_log
|
|
WHERE action = ANY(sqlc.arg(actions)::text[])
|
|
AND (NOT sqlc.arg(system_only)::boolean OR actor_id IS NULL)
|
|
ORDER BY created_at DESC, id
|
|
LIMIT sqlc.arg(page_limit) OFFSET sqlc.arg(page_offset);
|