/ db / migrations / 033-add-autoresponder-field.sql
033-add-autoresponder-field.sql
1  -- Add autoresponder_enabled field to conversations table
2  -- Default to TRUE (autoresponder ON) for backwards compatibility
3  
4  ALTER TABLE conversations ADD COLUMN autoresponder_enabled BOOLEAN DEFAULT 1;
5  
6  -- Index for filtering by autoresponder status
7  CREATE INDEX IF NOT EXISTS idx_conversations_autoresponder ON conversations(autoresponder_enabled);