aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/DB_Upgrade.php8
-rw-r--r--boot.php2
2 files changed, 2 insertions, 8 deletions
diff --git a/Zotlabs/Lib/DB_Upgrade.php b/Zotlabs/Lib/DB_Upgrade.php
index 981c354a4..7e1016a73 100644
--- a/Zotlabs/Lib/DB_Upgrade.php
+++ b/Zotlabs/Lib/DB_Upgrade.php
@@ -6,13 +6,7 @@ use Zotlabs\Lib\Config;
class DB_Upgrade {
- public $config_name = '';
- public $func_prefix = '';
-
- function __construct($db_revision) {
-
- $this->config_name = 'db_version';
- $this->func_prefix = '_';
+ public static function run(int $db_revision): void {
$build = Config::Get('system', 'db_version', 0);
if(! intval($build))
diff --git a/boot.php b/boot.php
index 66dba84c3..6d53f7f25 100644
--- a/boot.php
+++ b/boot.php
@@ -1545,7 +1545,7 @@ function check_config() {
if (!$syschan_exists)
create_sys_channel();
- new DB_Upgrade(DB_UPDATE_VERSION);
+ DB_Upgrade::run(DB_UPDATE_VERSION);
plugins_sync();