diff options
-rw-r--r-- | core/controllers/welcome.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 786d7bcc..a0314ac2 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -48,6 +48,14 @@ class Welcome_Controller extends Template_Controller { function uninstall($module_name) { if ($module_name == "core") { + // Legacy support for uninstalling the auth module + try { + $db = Database::instance(); + $db->query("DROP TABLE IF EXISTS `passwords`;"); + ORM::factory("module")->where("name", "auth")->find()->delete(); + } catch (Exception $e) { + } + // We have to uninstall all other modules first, else their tables, etc don't // get cleaned up. foreach (ORM::factory("module")->find_all() as $module) { |