From ffa39aabb99e1b9b7f475f5afee523c821e34112 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 10 Nov 2008 21:55:27 +0000 Subject: Manually delete the auth table and module entry to ease transitions for devs. --- core/controllers/welcome.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') 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) { -- cgit v1.2.3