From 1d4e25d97cad3a173354e87b224581c17a253c65 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Wed, 1 Apr 2026 17:29:12 -0700 Subject: [PATCH] Add delete to not depend on FK --- app/repository/contacts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/repository/contacts.py b/app/repository/contacts.py index 7b5e00e..9ab1307 100644 --- a/app/repository/contacts.py +++ b/app/repository/contacts.py @@ -398,6 +398,9 @@ class ContactRepository: await db.conn.execute( "DELETE FROM contact_advert_paths WHERE public_key = ?", (normalized,) ) + await db.conn.execute( + "DELETE FROM repeater_telemetry_history WHERE public_key = ?", (normalized,) + ) await db.conn.execute("DELETE FROM contacts WHERE public_key = ?", (normalized,)) await db.conn.commit()