You are here

function heartbeat_update_3 in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 heartbeat.install \heartbeat_update_3()

Update to branch 3.x

Return value

sql statements array

File

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

Code

function heartbeat_update_3() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("RENAME TABLE {user_activity} TO {hb_activity}");
      $ret[] = update_sql("DELETE FROM {system} WHERE name = 'user_activity'");
      $ret[] = update_sql("UPDATE {system} SET status = 1 WHERE name = 'hb_activity'");
      break;
  }
  return $ret;
}