]> git.mxchange.org Git - friendica.git/commitdiff
Update routine added
authorMichael <heluecht@pirati.ca>
Wed, 6 Mar 2024 03:41:13 +0000 (03:41 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 Mar 2024 03:41:13 +0000 (03:41 +0000)
database.sql
static/dbstructure.config.php
update.php

index 68895634725816787cdc4275b64ded479d809451..ae71114e5b0241a2b699758683cf2e49a62d58e9 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2024.03-rc (Yellow Archangel)
--- DB_UPDATE_VERSION 1555
+-- DB_UPDATE_VERSION 1556
 -- ------------------------------------------
 
 
index 70b78f4c77bc8fc0cbf1d035b719adc1634a0234..cfda0558186285ee086484cc2244f9b6bad760cf 100644 (file)
@@ -56,7 +56,7 @@ use Friendica\Database\DBA;
 
 // This file is required several times during the test in DbaDefinition which justifies this condition
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1555);
+       define('DB_UPDATE_VERSION', 1556);
 }
 
 return [
index 7329b84b8db3b3d9d864d451324dfda94d60e047..ffdfa5561888c0127c5ab3fe57122f33da573744 100644 (file)
@@ -1436,3 +1436,14 @@ function update_1554()
 
        return Update::SUCCESS;
 }
+
+function update_1556()
+{
+       $users = DBA::select('user', ['uid'], ['verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false]);
+       while ($user = DBA::fetch($users)) {
+               Worker::add(Worker::PRIORITY_LOW, 'ProfileUpdate', $user['uid']);
+       }
+       DBA::close($users);
+
+       return Update::SUCCESS;
+}