mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +00:00
Moving UPDATE defines/constants out of boot
This commit is contained in:
parent
4ae985e5ed
commit
87f3fe24f7
5 changed files with 25 additions and 35 deletions
|
@ -23,6 +23,10 @@ require_once 'include/text.php';
|
|||
*/
|
||||
class DBStructure
|
||||
{
|
||||
const UPDATE_NOT_CHECKED = 0; // Database check wasn't executed before
|
||||
const UPDATE_SUCCESSFUL = 1; // Database check was successful
|
||||
const UPDATE_FAILED = 2; // Database check failed
|
||||
|
||||
/**
|
||||
* Database structure definition loaded from config/dbstructure.php
|
||||
*
|
||||
|
@ -535,9 +539,9 @@ class DBStructure
|
|||
Config::set('system', 'maintenance_reason', '');
|
||||
|
||||
if ($errors) {
|
||||
Config::set('system', 'dbupdate', DB_UPDATE_FAILED);
|
||||
Config::set('system', 'dbupdate', self::UPDATE_FAILED);
|
||||
} else {
|
||||
Config::set('system', 'dbupdate', DB_UPDATE_SUCCESSFUL);
|
||||
Config::set('system', 'dbupdate', self::UPDATE_SUCCESSFUL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue