Added foreign key

This commit is contained in:
Michael 2020-09-22 07:19:44 +00:00
parent d3abf5eff9
commit 93cd85595c
4 changed files with 6 additions and 2 deletions

View file

@ -55,6 +55,7 @@ class MergeContact
DBA::delete('post-tag', ['cid' => $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', ['causer-id' => $new_cid], ['causer-id' => $old_cid]);
DBA::update('thread', ['author-id' => $new_cid], ['author-id' => $old_cid]);
DBA::update('thread', ['owner-id' => $new_cid], ['owner-id' => $old_cid]);
} else {