Index: zeitgeist.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/zeitgeist/Attic/zeitgeist.install,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 zeitgeist.install
--- zeitgeist.install	25 Aug 2007 22:16:57 -0000	1.1.2.3
+++ zeitgeist.install	18 Nov 2007 16:49:27 -0000
@@ -21,6 +21,30 @@
   }
 
 /**
+ * The index on ts should not normally be there but dropping it anyway make the
+ * update idempotent, and helps cover the case where users already applied such
+ * an index, making the update safer.
+ *
+ * @return array
+ */
+function zeitgeist_update_2()
+  {
+  $items = array();
+  $sq = "SHOW INDEX FROM {zeitgeist}";
+  $q = db_query($sq);
+  while ($o = db_fetch_object($q))
+    {
+    if ($o->Key_name == 'ts')
+      {
+      $items[] = update_sql("ALTER TABLE {zeitgeist} DROP INDEX `ts` ");
+      break;
+      }
+    }
+  $items[] = update_sql("ALTER TABLE {zeitgeist} ADD INDEX ( `ts` )");
+  return $items;
+  }
+
+/**
  * implementation of hook_install from #72166 and #72662 combined
  *
  * @return void
