From acec3ed5b43ac6d0fcc46fb614ea8e94e308d147 Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Thu, 4 Jan 2024 09:57:14 -0300 Subject: [PATCH] DBP: Respect foreign constraints when deleting all user's data (#2014) --- .../DataBrokerProtectionDatabaseProvider.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift index e1ad368fd0..384157de75 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift @@ -321,28 +321,16 @@ final class DefaultDataBrokerProtectionDatabaseProvider: GRDBSecureStorageDataba func deleteProfileData() throws { try db.write { db in - try OptOutHistoryEventDB - .deleteAll(db) try OptOutDB .deleteAll(db) - try ScanHistoryEventDB - .deleteAll(db) try ScanDB .deleteAll(db) - try ExtractedProfileDB - .deleteAll(db) - try ProfileQueryDB - .deleteAll(db) - try BrokerDB - .deleteAll(db) try NameDB .deleteAll(db) try AddressDB .deleteAll(db) try PhoneDB .deleteAll(db) - try ProfileDB - .deleteAll(db) } }