From: Michael J Rubinsky Date: Sat, 22 Jan 2011 02:28:40 +0000 (-0500) Subject: Need to remove the old-style named index incase this is an upgrade from h3 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e7957ca82a4a13a49fc1f29d87579ffebabad16d;p=horde.git Need to remove the old-style named index incase this is an upgrade from h3 --- diff --git a/ansel/migration/8_ansel_upgrade_sqlhierarchical.php b/ansel/migration/8_ansel_upgrade_sqlhierarchical.php index ccff08d65..2b5ca82ec 100644 --- a/ansel/migration/8_ansel_upgrade_sqlhierarchical.php +++ b/ansel/migration/8_ansel_upgrade_sqlhierarchical.php @@ -22,6 +22,9 @@ class AnselUpgradeSqlHierarchical extends Horde_Db_Migration_Base try { $this->removeIndex('ansel_shares', 'share_parents'); } catch (Exception $e) {} + try { + $this->removeIndex('ansel_shares', array('name' => 'ansel_shares_share_parents_idx')); + } catch (Exception $e) {} $this->addColumn('ansel_shares', 'share_name', 'string', array('limit' => 255, 'null' => false)); $this->changeColumn('ansel_shares', 'share_parents', 'text');