You are here

function user_relationships_update_7004 in User Relationships 7

Drop indexes that harm performance from the {user_relationships} table.

File

./user_relationships.install, line 158
User Relationships API Module installation file.

Code

function user_relationships_update_7004() {
  db_drop_primary_key('user_relationships');
  db_drop_index('user_relationships', 'rtid');
  db_add_index('user_relationships', 'relationship', array(
    'requester_id',
    'requestee_id',
  ));
}