Index: userpoints.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints/userpoints.install,v
retrieving revision 1.15
diff -u -F^f -r1.15 userpoints.install
--- userpoints.install	26 Mar 2008 20:12:43 -0000	1.15
+++ userpoints.install	9 Jun 2008 13:58:33 -0000
@@ -48,6 +48,7 @@ function userpoints_schema() {
     'primary key' => array('pid'),
     'indexes' => array(
       'last_update' => array('last_update'),
+      'uid_tid' => array('uid', 'tid'),
     ),
   );
   
@@ -230,3 +231,9 @@ function userpoints_update_8() {
   db_change_field($ret, 'userpoints', 'tid', 'tid', array('type' => 'int', 'not null' => true, 'default' => 0, 'lenght' => 11));
   return $ret;
 }
+
+function userpoints_update_6009() {
+  $ret = array();
+  db_add_index($ret, 'userpoints', 'uid_tid', array('uid', 'tid'));
+  return $ret;
+}
