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;
12 class DBUpdate extends BaseObject
14 public static function execute()
16 // Just in case the last update wasn't failed
17 if (Config::get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
18 Update::run(self::getApp()->getBasePath());