From 6899650bf83ed48f38f819fe89f15bc2951d9a96 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 30 Mar 2026 21:19:08 +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 73227290..84a6e6b5 100644 --- a/AppImage/scripts/health_persistence.py +++ b/AppImage/scripts/health_persistence.py @@ -95,6 +95,7 @@ class HealthPersistence: first_seen TEXT NOT NULL, last_seen TEXT NOT NULL, resolved_at TEXT, + resolution_type TEXT, acknowledged INTEGER DEFAULT 0, acknowledged_at TEXT, notification_sent INTEGER DEFAULT 0, @@ -170,6 +171,9 @@ class HealthPersistence: if 'occurrence_count' not in columns: cursor.execute('ALTER TABLE errors ADD COLUMN occurrence_count INTEGER DEFAULT 1') + if 'resolution_type' not in columns: + cursor.execute('ALTER TABLE errors ADD COLUMN resolution_type 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)')