. * */ namespace Friendica\Worker; use Friendica\Core\Update; use Friendica\DI; /** * This file is called when the database structure needs to be updated */ class DBUpdate { public static function execute() { // Just in case the last update wasn't failed if (DI::config()->get('system', 'update', Update::SUCCESS, true) != Update::FAILED) { Update::run(DI::app()->getBasePath()); } } }