From c33bd8e2de56fa198ab9be02afce57c36fe59fdd Mon Sep 17 00:00:00 2001 From: Repinoid Date: Sun, 28 Jun 2026 11:32:07 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B5=20execute=20=D0=B4=D0=BB=D1=8F=20CREAT?= =?UTF-8?q?E=20TABLE=20+=20INDEX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/db.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/db.py b/api/db.py index 5528962..d689f23 100644 --- a/api/db.py +++ b/api/db.py @@ -177,10 +177,11 @@ class Database: created_at TEXT NOT NULL DEFAULT (datetime('now')), sent_at TEXT, responded_at TEXT - ); - CREATE INDEX IF NOT EXISTS idx_cq_device_status_seq - ON command_queue(device_id, status, seq); + ) """) + self.conn.execute( + "CREATE INDEX IF NOT EXISTS idx_cq_device_status_seq ON command_queue(device_id, status, seq)" + ) self.conn.commit() # ── sessions ──────────────────────────────────────────