mirror of
https://github.com/friendica/friendica
synced 2024-12-26 22:40:18 +00:00
23654ce566
- Logging - Console - Admin overview
21 lines
494 B
PHP
21 lines
494 B
PHP
<?php
|
|
/**
|
|
* @file src/Worker/DBUpdate.php
|
|
* @brief This file is called when the database structure needs to be updated
|
|
*/
|
|
namespace Friendica\Worker;
|
|
|
|
use Friendica\BaseObject;
|
|
use Friendica\Core\Config;
|
|
use Friendica\Core\Update;
|
|
|
|
class DBUpdate extends BaseObject
|
|
{
|
|
public static function execute()
|
|
{
|
|
// Just in case the last update wasn't failed
|
|
if (Config::get('system', 'update', Update::SUCCESS, true) != Update::FAILED) {
|
|
Update::run(self::getApp()->getBasePath());
|
|
}
|
|
}
|
|
}
|