From 151e9d87e117b7980e6aad522ac8f3633eeca87a Mon Sep 17 00:00:00 2001
From: soryu <soryu@soryu.co>
Date: Mon, 2 Feb 2026 02:34:50 +0000
Subject: Make makima more opinionated and structured

---
 .../migrations/20260202000000_remove_red_team_system.sql  | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 makima/migrations/20260202000000_remove_red_team_system.sql

(limited to 'makima/migrations/20260202000000_remove_red_team_system.sql')

diff --git a/makima/migrations/20260202000000_remove_red_team_system.sql b/makima/migrations/20260202000000_remove_red_team_system.sql
new file mode 100644
index 0000000..0a5bbf8
--- /dev/null
+++ b/makima/migrations/20260202000000_remove_red_team_system.sql
@@ -0,0 +1,15 @@
+-- Remove red team system
+-- This migration drops all red team related tables, columns, and indexes
+
+-- Drop red team notifications table
+DROP TABLE IF EXISTS red_team_notifications;
+
+-- Drop red team index on tasks
+DROP INDEX IF EXISTS idx_tasks_contract_red_team;
+
+-- Remove red team column from tasks
+ALTER TABLE tasks DROP COLUMN IF EXISTS is_red_team;
+
+-- Remove red team columns from contracts
+ALTER TABLE contracts DROP COLUMN IF EXISTS red_team_enabled;
+ALTER TABLE contracts DROP COLUMN IF EXISTS red_team_prompt;
-- 
cgit v1.2.3

