From: Michael Date: Thu, 19 Sep 2019 03:54:54 +0000 (+0000) Subject: Update the "unsearchable" field in the "self" contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d32a8674bc9c66286fecf43bb6beddd3884d859;p=friendica.git Update the "unsearchable" field in the "self" contact --- diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 2c8f4b34be..53f8a8ed44 100755 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -34,7 +34,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1322); + define('DB_UPDATE_VERSION', 1323); } return [ diff --git a/update.php b/update.php index 18442f7958..3132677ea7 100644 --- a/update.php +++ b/update.php @@ -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; +} +