From: Michael J. Rubinsky Date: Sat, 22 Jan 2011 02:18:55 +0000 (-0500) Subject: Catch error if index doesn't exist X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=03e92d15493115e0c6745e5cabfb60cad075d98f;p=horde.git Catch error if index doesn't exist --- diff --git a/ansel/migration/8_ansel_upgrade_sqlhierarchical.php b/ansel/migration/8_ansel_upgrade_sqlhierarchical.php index 64a8cf50e..ccff08d65 100644 --- a/ansel/migration/8_ansel_upgrade_sqlhierarchical.php +++ b/ansel/migration/8_ansel_upgrade_sqlhierarchical.php @@ -19,7 +19,9 @@ class AnselUpgradeSqlHierarchical extends Horde_Db_Migration_Base */ public function up() { - $this->removeIndex('ansel_shares', 'share_parents'); + try { + $this->removeIndex('ansel_shares', 'share_parents'); + } catch (Exception $e) {} $this->addColumn('ansel_shares', 'share_name', 'string', array('limit' => 255, 'null' => false)); $this->changeColumn('ansel_shares', 'share_parents', 'text');