-- Rollback repository monitoring tables

-- Remove new column from tasks table
ALTER TABLE tasks DROP COLUMN IF EXISTS repository_id;

-- Drop tables in reverse order
DROP TABLE IF EXISTS repository_sync_logs;
DROP TABLE IF EXISTS repository_webhooks;  
DROP TABLE IF EXISTS repositories;