Files
info-share-spot/supabase/migrations/20260807001200_attendance_status_values.sql
T
2026-08-07 12:51:19 +00:00

13 lines
597 B
SQL

-- Attendance state expansion — spec section 16.
--
-- The visual state system needs vacation as a first-class state alongside
-- present / absent / late / excused. "Not yet marked" is the absence of a row,
-- so it needs no enum member.
--
-- Enum values cannot be used in the transaction that adds them, and the
-- Supabase CLI wraps each file in one transaction, so this file adds values and
-- nothing else. 20260807001300 is where they are used.
ALTER TYPE public.attendance_status ADD VALUE IF NOT EXISTS 'vacation';
ALTER TYPE public.attendance_status ADD VALUE IF NOT EXISTS 'holiday';