Skip to content

Commit

Permalink
DBP: Respect foreign constraints when deleting all user's data (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira authored Jan 4, 2024
1 parent f6f7ac4 commit acec3ed
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit acec3ed

Please sign in to comment.