]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DBUpdate.php
Moved the functions update_db and run_update_function to a Friendica\Core\Update...
[friendica.git] / src / Worker / DBUpdate.php
index ed8e409e987ab0a6c942328b9448051e81f58747..fcf07c0b6506aee0823eb150abc61f72a8ae4b56 100644 (file)
@@ -6,17 +6,16 @@
 namespace Friendica\Worker;
 
 use Friendica\Core\Config;
+use Friendica\Core\Update;
 
 class DBUpdate
 {
        public static function execute()
        {
-               $a = \Friendica\BaseObject::getApp();
-
                // 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);
+               Update::run();
        }
 }