Index: flag.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag/Attic/flag.install,v
retrieving revision 1.2.2.32.2.9
diff -u -r1.2.2.32.2.9 flag.install
--- flag.install	8 May 2010 02:40:10 -0000	1.2.2.32.2.9
+++ flag.install	8 May 2010 20:31:30 -0000
@@ -291,7 +291,7 @@
         'disp-width' => '10',
       )
     ),
-    'primary key' => array('fid', 'content_type', 'content_id'),
+    'primary key' => array('fid', 'content_id'),
     'indexes' => array(
       'fid_content_type' => array('fid', 'content_type'),
       'content_type_content_id' => array('content_type', 'content_id'),
@@ -552,6 +552,16 @@
   return $ret;
 }
 
+/**
+ * Remove "content type" from the flag_counts primary key.
+ */
+function flag_update_6204() {
+  $ret = array();
+  db_drop_primary_key($ret, 'flag_counts');
+  db_add_primary_key($ret, 'flag_counts', array('fid', 'content_id'));
+  return $ret;
+}
+
 // This is a replacement for update_sql(). The latter doesn't support placeholders.
 function _flag_update_sql($sql) {
   $args = func_get_args();
