-- Down: Remove extension columns from agent_templates
DROP INDEX IF EXISTS idx_agent_templates_source_id;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS source_id;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS version;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS emoji;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS communication_style;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS personality;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS quick_commands;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS welcome_message;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS scenarios;
ALTER TABLE agent_templates DROP COLUMN IF EXISTS soul_content;
