summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-26 09:34:31 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-26 09:34:31 +0000
commit427dc7a0d1297a8cab1d6913fa841f481929d9c4 (patch)
tree880d1f3b4830d07cf9f40a044808db579c26a242 /modules
parentde56a33c9c27cdf5abc0573fb1334fbbeb762048 (diff)
Ignore errors from dropping view columns from the items table.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/helpers/user_installer.php7
1 files changed, 6 insertions, 1 deletions
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 {