diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-10 21:55:27 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-10 21:55:27 +0000 |
commit | ffa39aabb99e1b9b7f475f5afee523c821e34112 (patch) | |
tree | 3a97b40a9317acb22afda9a24b0d63f27a2640cf | |
parent | 7bcf7efc097cc0a9264d9714cdc72fc30554f376 (diff) |
Manually delete the auth table and module entry to ease transitions for devs.
-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) { |