From 8844b55995b91cead947ab71b77e84f2185fe2da Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Thu, 31 Jan 2008 11:03:26 +0000 Subject: [PATCH] Merged in from DEV trunk... --- setup/upgrade.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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. -- libgit2 0.21.4