contact-relation - Fix DB error

This commit is contained in:
Philipp 2021-10-19 22:23:39 +02:00
parent ee5fb6238c
commit b838b594cd
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -76,7 +76,7 @@ class RemoveContent
Photo::delete(['contact-id' => $id]); Photo::delete(['contact-id' => $id]);
DBA::delete('contact-relation', ['contact-id = ? OR cid = ?', $id, $id]); DBA::delete('contact-relation', ['`contact-id` = ? OR `cid` = ?', $id, $id]);
DBA::delete('event', ['cid' => $id]); DBA::delete('event', ['cid' => $id]);
DBA::delete('fsuggest', ['cid' => $id]); DBA::delete('fsuggest', ['cid' => $id]);
DBA::delete('post-tag', ['cid' => $id]); DBA::delete('post-tag', ['cid' => $id]);