-- Rollback tasks table creation
ALTER TABLE teams DROP COLUMN IF EXISTS current_task_id;
DROP INDEX IF EXISTS idx_tasks_external_id_source;
DROP INDEX IF EXISTS idx_tasks_created_at;
DROP INDEX IF EXISTS idx_tasks_priority;
DROP INDEX IF EXISTS idx_tasks_repository;
DROP INDEX IF EXISTS idx_tasks_assigned_agent;
DROP INDEX IF EXISTS idx_tasks_assigned_team;
DROP INDEX IF EXISTS idx_tasks_source_type;
DROP INDEX IF EXISTS idx_tasks_status;
DROP TABLE IF EXISTS tasks;