3 * @file src/Worker/DBUpdate.php
4 * @brief This file is called when the database structure needs to be updated
6 namespace Friendica\Worker;
8 use Friendica\BaseObject;
9 use Friendica\Core\Config;
10 use Friendica\Core\Update;
13 class DBUpdate extends BaseObject
15 public static function execute()
17 // Just in case the last update wasn't failed
18 if (Config::get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
19 Update::run(DI::app()->getBasePath());