-- Make thread_id nullable in contact_submissions table
-- Contact submissions don't have a thread until an admin replies
ALTER TABLE public.contact_submissions 
ALTER COLUMN thread_id DROP NOT NULL;