From 41c89abe68b2ca004a0f91397569c9d9d02d5735 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 Mar 2024 03:41:13 +0000 Subject: [PATCH] Update routine added --- database.sql | 2 +- static/dbstructure.config.php | 2 +- update.php | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 6889563472..ae71114e5b 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2024.03-rc (Yellow Archangel) --- DB_UPDATE_VERSION 1555 +-- DB_UPDATE_VERSION 1556 -- ------------------------------------------ diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 70b78f4c77..cfda055818 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -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 [ diff --git a/update.php b/update.php index 7329b84b8d..ffdfa55618 100644 --- a/update.php +++ b/update.php @@ -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; +}