3 * @file src/Worker/DBUpdate.php
4 * This file is called when the database structure needs to be updated
6 namespace Friendica\Worker;
8 use Friendica\Core\Config;
9 use Friendica\Core\Update;
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(DI::app()->getBasePath());