You are here

function heartbeat_update_7016 in Heartbeat 7

Add unique keys to the heartbeat activity table.

File

./heartbeat.install, line 440
Installation file for the heartbeat module. @author Jochen Stals - Menhir - www.menhir.be

Code

function heartbeat_update_7016() {

  // Add in unique keys and indexes.
  db_add_unique_key('heartbeat_activity', 'uaid', array(
    'uaid',
  ));
  db_add_unique_key('heartbeat_activity', 'uaid_uid', array(
    'uaid',
    'uid',
  ));
  db_add_unique_key('heartbeat_activity', 'uaid_nid', array(
    'uaid',
    'nid',
  ));
  db_add_unique_key('heartbeat_activity', 'uaid_uid_nid', array(
    'uaid',
    'uid',
    'nid',
  ));
}