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\Update;
13 public static function execute()
15 // Just in case the last update wasn't failed
16 if (DI::config()->get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
17 Update::run(DI::app()->getBasePath());