mirror of
https://github.com/friendica/friendica
synced 2025-01-22 18:59:46 +00:00
Issue 8958: Ensure to have no foreign key violation
This commit is contained in:
parent
d0caf93a0a
commit
64c6224968
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ class MergeContact
|
||||||
// These fields only contain public contact entries (uid = 0)
|
// These fields only contain public contact entries (uid = 0)
|
||||||
if ($uid == 0) {
|
if ($uid == 0) {
|
||||||
DBA::update('post-tag', ['cid' => $new_cid], ['cid' => $old_cid]);
|
DBA::update('post-tag', ['cid' => $new_cid], ['cid' => $old_cid]);
|
||||||
|
DBA::delete('post-tag', ['cid' => $old_cid]);
|
||||||
DBA::update('item', ['author-id' => $new_cid], ['author-id' => $old_cid]);
|
DBA::update('item', ['author-id' => $new_cid], ['author-id' => $old_cid]);
|
||||||
DBA::update('item', ['owner-id' => $new_cid], ['owner-id' => $old_cid]);
|
DBA::update('item', ['owner-id' => $new_cid], ['owner-id' => $old_cid]);
|
||||||
DBA::update('thread', ['author-id' => $new_cid], ['author-id' => $old_cid]);
|
DBA::update('thread', ['author-id' => $new_cid], ['author-id' => $old_cid]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue