]> git.mxchange.org Git - friendica.git/commitdiff
Update the "unsearchable" field in the "self" contact
authorMichael <heluecht@pirati.ca>
Thu, 19 Sep 2019 03:54:54 +0000 (03:54 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 19 Sep 2019 03:54:54 +0000 (03:54 +0000)
static/dbstructure.config.php
update.php

index 2c8f4b34bee88b2332148860159932d1d4af6849..53f8a8ed44b8b1a3a36b8e057ec5bfcadedb5b7a 100755 (executable)
@@ -34,7 +34,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1322);
+       define('DB_UPDATE_VERSION', 1323);
 }
 
 return [
index 18442f79588ecea0d6cd154f74c1f161ac4d8c4b..3132677ea7f5e8a7383064e51092db1a6b0573e5 100644 (file)
@@ -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;
+}
+