-- Rollback: Remove status and letter_incoming_id columns from letter_incoming_dispositions_department table

-- Drop the constraint first
ALTER TABLE letter_incoming_dispositions_department
DROP CONSTRAINT IF EXISTS check_disposition_department_status;

-- Drop indexes
DROP INDEX IF EXISTS idx_letter_incoming_dispositions_department_status;
DROP INDEX IF EXISTS idx_letter_incoming_dispositions_department_letter_id;

-- Drop the columns
ALTER TABLE letter_incoming_dispositions_department
DROP COLUMN IF EXISTS status;

ALTER TABLE letter_incoming_dispositions_department
DROP COLUMN IF EXISTS letter_incoming_id;

ALTER TABLE letter_incoming_dispositions_department
DROP COLUMN IF EXISTS read_at;

ALTER TABLE letter_incoming_dispositions_department
DROP COLUMN IF EXISTS completed_at;

ALTER TABLE letter_incoming_dispositions_department
DROP COLUMN IF EXISTS updated_at;