Need to remove the old-style named index incase this is an upgrade from h3
authorMichael J Rubinsky <mrubinsk@horde.org>
Sat, 22 Jan 2011 02:28:40 +0000 (21:28 -0500)
committerMichael J Rubinsky <mrubinsk@horde.org>
Sat, 22 Jan 2011 02:28:40 +0000 (21:28 -0500)
ansel/migration/8_ansel_upgrade_sqlhierarchical.php

index ccff08d..2b5ca82 100644 (file)
@@ -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');