From 215d36900a88b2577de5b528617b0873f2fe207d Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 31 Mar 2026 23:20:33 +0200 Subject: [PATCH] Update health_persistence.py --- AppImage/scripts/health_persistence.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AppImage/scripts/health_persistence.py b/AppImage/scripts/health_persistence.py index b82326b1..e0d55bf2 100644 --- a/AppImage/scripts/health_persistence.py +++ b/AppImage/scripts/health_persistence.py @@ -102,6 +102,7 @@ class HealthPersistence: last_seen TEXT NOT NULL, resolved_at TEXT, resolution_type TEXT, + resolution_reason TEXT, acknowledged INTEGER DEFAULT 0, acknowledged_at TEXT, notification_sent INTEGER DEFAULT 0, @@ -180,6 +181,9 @@ class HealthPersistence: if 'resolution_type' not in columns: cursor.execute('ALTER TABLE errors ADD COLUMN resolution_type TEXT') + if 'resolution_reason' not in columns: + cursor.execute('ALTER TABLE errors ADD COLUMN resolution_reason TEXT') + # Indexes for performance cursor.execute('CREATE INDEX IF NOT EXISTS idx_error_key ON errors(error_key)') cursor.execute('CREATE INDEX IF NOT EXISTS idx_category ON errors(category)')