From 427dc7a0d1297a8cab1d6913fa841f481929d9c4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 26 Nov 2008 09:34:31 +0000 Subject: Ignore errors from dropping view columns from the items table. --- modules/user/helpers/user_installer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/user/helpers') diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index 13811804..f47975b7 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -73,7 +73,12 @@ class user_installer { public static function uninstall() { // Remove all our groups so that we clean up the items table foreach (ORM::factory("group")->find_all() as $group) { - group::delete($group->id); + try { + group::delete($group->id); + } catch (Kohana_Database_Exception $e) { + // We may get errors when we try to remove the view columns from the items table. + // Ignore those for now. + } } try { -- cgit v1.2.3