owpengram-server/deploy/migrations/20260901000021_bootstrap_pending_readiness_index.up.sql
2026-09-01 12:06:31 +03:00

3 lines
173 B
SQL

CREATE INDEX IF NOT EXISTS bootstrap_update_jobs_pending_auth_idx
ON public.bootstrap_update_jobs (user_id, auth_key_id, id)
WHERE (status)::text = 'pending'::text;