-- Update recurring_type check constraints to include new types
ALTER TABLE events DROP CONSTRAINT IF EXISTS events_recurring_type_check;
ALTER TABLE events ADD CONSTRAINT events_recurring_type_check 
    CHECK (recurring_type IN ('DAILY', 'WEEKLY', 'BIWEEKLY', 'FIRST_TUESDAY', 'none', 'daily', 'weekly', 'biweekly', 'monthly', 'first_tuesday', '2nd/3rd Saturday Monthly'));

ALTER TABLE pending_events DROP CONSTRAINT IF EXISTS pending_events_recurring_type_check;
ALTER TABLE pending_events ADD CONSTRAINT pending_events_recurring_type_check 
    CHECK (recurring_type IN ('DAILY', 'WEEKLY', 'BIWEEKLY', 'FIRST_TUESDAY', 'none', 'daily', 'weekly', 'biweekly', 'monthly', 'first_tuesday', '2nd/3rd Saturday Monthly'));