Files
silo-server/migrations/048_library_refresh_jobs.up.sql
T

7 lines
250 B
SQL
Raw Normal View History

2026-05-22 20:26:11 -04:00
CREATE UNIQUE INDEX admin_jobs_active_library_refresh_idx
ON public.admin_jobs USING btree (job_type, ((request_payload->>'library_id')))
WHERE (
status = ANY (ARRAY['queued'::text, 'running'::text])
AND job_type = 'library_refresh'::text
);