X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FDBUpdate.php;h=48c7e7ce6a20ec22fa3bb5389aea01970aeb00c8;hb=2bd62bfdea6ba720c43683a9b747f9c10d389084;hp=5f85c8ebefbd2ffb00a39cf477a3f0f2b742991c;hpb=a21f6135fcd8f0bfdb49de38a5ab4954d1784503;p=friendica.git diff --git a/src/Worker/DBUpdate.php b/src/Worker/DBUpdate.php index 5f85c8ebef..48c7e7ce6a 100644 --- a/src/Worker/DBUpdate.php +++ b/src/Worker/DBUpdate.php @@ -5,16 +5,12 @@ */ namespace Friendica\Worker; -use Friendica\Core\Config; +use Friendica\Core\Update; -class DBUpdate { - public static function execute() { - $a = get_app(); - - // We are deleting the latest dbupdate entry. - // This is done to avoid endless loops because the update was interupted. - Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION); - - update_db($a); +class DBUpdate +{ + public static function execute() + { + Update::run(); } }