mirror of
https://github.com/friendica/friendica
synced 2025-04-30 05:04:22 +02:00
dbupdate now moved as well
This commit is contained in:
parent
659748d27c
commit
13f899542d
6 changed files with 28 additions and 14 deletions
18
src/Worker/DBUpdate.php
Normal file
18
src/Worker/DBUpdate.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* @file src/Worker/DBUpdate.php
|
||||
* @brief This file is called when the database structure needs to be updated
|
||||
*/
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Config;
|
||||
|
||||
class DBUpdate {
|
||||
public static function execute() {
|
||||
// We are deleting the latest dbupdate entry.
|
||||
// This is done to avoid endless loops because the update was interupted.
|
||||
Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION);
|
||||
|
||||
update_db($a);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue