-- Drop indexes for letter_incoming_recipients
DROP INDEX IF EXISTS idx_letter_incoming_recipients_archived;
DROP INDEX IF EXISTS idx_letter_incoming_recipients_user_archived;
DROP INDEX IF EXISTS idx_letter_incoming_recipients_letter_archived;
DROP INDEX IF EXISTS idx_letter_incoming_recipients_dept_archived;

-- Drop indexes for letter_outgoing_recipients
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_archived;
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_user_archived;
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_letter_archived;

-- Drop the is_archived columns
ALTER TABLE letter_incoming_recipients 
DROP COLUMN IF EXISTS is_archived;

ALTER TABLE letter_outgoing_recipients 
DROP COLUMN IF EXISTS is_archived;