diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-10-14 22:52:13 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-10-14 22:52:13 +0200 |
commit | 074dc440cc1447493694181cce95cb336476eda3 (patch) | |
tree | 8e9518d8fc719b988e857ff68b2414fa676c0fd6 /Zotlabs | |
parent | 40a9989be2366f30a37c8d451bae74a1d304319b (diff) | |
download | volse-hubzilla-074dc440cc1447493694181cce95cb336476eda3.tar.gz volse-hubzilla-074dc440cc1447493694181cce95cb336476eda3.tar.bz2 volse-hubzilla-074dc440cc1447493694181cce95cb336476eda3.zip |
Change DB_Upgrade to a static function instead.
No need for this to be an object, since it's never referenced or even
kept after construction. Further all the functionality was in the
constructor anyways.
Also removed some unused properties.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/DB_Upgrade.php | 8 |
1 files changed, 1 insertions, 7 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)) |