diff options
-rw-r--r-- | Zotlabs/Lib/DB_Upgrade.php | 8 | ||||
-rw-r--r-- | boot.php | 2 |
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)) @@ -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(); |