mirror of
https://github.com/friendica/friendica
synced 2025-02-08 01:38:50 +00:00
25 lines
561 B
PHP
25 lines
561 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
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) != Update::FAILED) {
|
|
Update::run(DI::appHelper()->getBasePath());
|
|
}
|
|
}
|
|
}
|