Post update script to move old content from the item table

This commit is contained in:
Michael 2018-07-01 19:02:29 +00:00
parent 32a639891f
commit 38160a48b0
4 changed files with 59 additions and 15 deletions

View file

@ -2087,13 +2087,6 @@ class DFRN
logger('Contacts are updated.');
// update items
// This is an extreme performance killer
Item::update(['owner-link' => $relocate["url"]], ['owner-link' => $old["url"], 'uid' => $importer["importer_uid"]]);
Item::update(['author-link' => $relocate["url"]], ['author-link' => $old["url"], 'uid' => $importer["importer_uid"]]);
logger('Items are updated.');
/// @TODO
/// merge with current record, current contents have priority
/// update record, set url-updated

View file

@ -1543,13 +1543,6 @@ class Diaspora
logger('Contacts are updated.');
// update items
// This is an extreme performance killer
Item::update(['owner-link' => $data["url"]], ['owner-link' => $contact["url"], 'uid' => $importer["uid"]]);
Item::update(['author-link' => $data["url"]], ['author-link' => $contact["url"], 'uid' => $importer["uid"]]);
logger('Items are updated.');
return true;
}