You are here

function invite_update_202 in Invite 7.2

Same name and namespace in other branches
  1. 5.2 invite.install \invite_update_202()
  2. 6.2 invite.install \invite_update_202()

Optimize index of notification table.

File

./invite.install, line 408
Installation file for invite module.

Code

function invite_update_202() {
  $ret = array();
  db_drop_index('invite_notifications', 'uid');
  db_add_unique_key('invite_notifications', 'uid_invitee', array(
    'uid',
    'invitee',
  ));
  return $ret;
}