Index: project_issue.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.install,v
retrieving revision 1.63
diff -u -p -r1.63 project_issue.install
--- project_issue.install	3 Aug 2009 19:16:36 -0000	1.63
+++ project_issue.install	14 Aug 2009 02:14:20 -0000
@@ -174,7 +174,7 @@ function project_issue_schema() {
         'not null' => FALSE,
       ),
       'cid' => array(
-        'description' => 'The {comments}.cid for this comment.',
+        'description' => 'Primary Key: The {comments}.cid for this comment.',
         'type' => 'int',
         'not null' => FALSE,
       ),
@@ -242,6 +242,7 @@ function project_issue_schema() {
         'default' => 0,
       ),
     ),
+    'primary key' => array('cid'),
     'indexes' => array(
       'nid_timestamp' => array('nid', 'timestamp'),
       'comment_number' => array('comment_number'),
@@ -433,3 +434,12 @@ function project_issue_update_6001() {
   return $ret;
 }
 
+/**
+ * Make {project_issue_comments}.cid the primary key for that table.
+ */
+function project_issue_update_6002() {
+  $ret = array();
+  db_add_primary_key($ret, 'project_issue_comments', array('cid'));
+  return $ret;
+}
+
