Files
accounted/supabase/migrations/20260330120000_add_last_integrity_check_at.sql
T
MattssonandClaude Opus 4.6 1756af6c5e Eb and skills (#152)
* fix: improve date filter UX with partial dates and Apply button (GNU-18)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: enhance banking settings with connection handling and integrity checks

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:20:07 +02:00

12 lines
560 B
SQL

-- Add last_integrity_check_at column for document integrity verification cron
-- Tracks when each document was last verified, allowing the cron to prioritize
-- unchecked or least-recently-checked documents.
ALTER TABLE public.document_attachments
ADD COLUMN last_integrity_check_at timestamptz;
-- Index for efficient ordering in the verification cron (nulls first = unchecked prioritized)
CREATE INDEX idx_document_attachments_integrity_check
ON public.document_attachments (last_integrity_check_at ASC NULLS FIRST)
WHERE is_current_version = true;