Update the "unsearchable" field in the "self" contact

This commit is contained in:
Michael 2019-09-19 03:54:54 +00:00
父節點 89e1fee01e
當前提交 0d32a8674b
共有 2 個文件被更改,包括 13 次插入1 次删除

查看文件

@ -34,7 +34,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1322);
define('DB_UPDATE_VERSION', 1323);
}
return [

查看文件

@ -384,3 +384,15 @@ function update_1318()
Worker::add(PRIORITY_LOW, 'ProfileUpdate');
return Update::SUCCESS;
}
function update_1323()
{
$users = DBA::select('user', ['uid']);
while ($user = DBA::fetch($users)) {
Contact::updateSelfFromUserID($user['uid']);
}
DBA::close($users);
return Update::SUCCESS;
}