diff --git a/setup/upgrade.php b/setup/upgrade.php index a926276..56aa674 100644 --- a/setup/upgrade.php +++ b/setup/upgrade.php @@ -119,8 +119,21 @@ function performAllUpgrades () { break; } } - KTPluginUtil::registerPlugins(); - return $res; + + return $res; +} + +function performPersistentActions() { + + // This is just to test and needs to be updated to a more sane and error resistent architrcture if it works. + // It should idealy work the same as the upgrades. + + // Clean out the plugin_helper table + $sql = "DELETE FROM plugin_helper"; + $res = DBUtil::runQuery($sql); + + return $res; + } function failWritablePath($name, $path) { @@ -1051,7 +1064,8 @@ function Upgrade() Upgrade failed.