1
0
Fork 0

Avoid lock problems, fix foreign key problems with contact-relation

This commit is contained in:
Michael 2021-02-28 17:56:56 +00:00
commit a1e2794c64
3 changed files with 63 additions and 53 deletions

View file

@ -71,7 +71,6 @@ class MergeContact
if (DBStructure::existsTable('thread')) {
DBA::update('thread', ['author-id' => $new_cid], ['author-id' => $old_cid]);
DBA::update('thread', ['owner-id' => $new_cid], ['owner-id' => $old_cid]);
DBA::update('thread', ['causer-id' => $new_cid], ['causer-id' => $old_cid]);
}
} else {
/// @todo Check if some other data needs to be adjusted as well, possibly the "rel" status?