From 5e0e4286f5af956a0c8f53a4a0f1cc44ab468dd0 Mon Sep 17 00:00:00 2001 From: "godon-robot[bot]" Date: Sat, 13 Jun 2026 10:21:46 +0000 Subject: [PATCH] fix: add receiver_violated column to detection_rounds schema --- controller/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/database.py b/controller/database.py index c548c94..20ffa44 100644 --- a/controller/database.py +++ b/controller/database.py @@ -145,7 +145,8 @@ def ensure_detection_rounds_table(self): sender_id VARCHAR(255) NOT NULL, status TEXT NOT NULL DEFAULT 'active', created_at TIMESTAMPTZ DEFAULT NOW(), - completed_at TIMESTAMPTZ + completed_at TIMESTAMPTZ, + receiver_violated BOOLEAN NOT NULL DEFAULT FALSE ); CREATE INDEX IF NOT EXISTS idx_detection_rounds_active ON detection_rounds (status) WHERE status = 'active';