Files
silo-server/migrations/013_item_refresh_jobs.up.sql
T

9 lines
304 B
SQL
Raw Normal View History

2026-05-22 20:26:11 -04:00
DROP INDEX IF EXISTS public.admin_jobs_active_job_type_idx;
CREATE UNIQUE INDEX admin_jobs_active_job_type_idx
ON public.admin_jobs USING btree (job_type)
WHERE (
status = ANY (ARRAY['queued'::text, 'running'::text])
AND job_type = ANY (ARRAY['catalog_export'::text, 'catalog_import'::text])
);