You are here

function forward_update_5 in Forward 6

Same name and namespace in other branches
  1. 7 forward.install \forward_update_5()

Add uid and hostname to log table

File

./forward.install, line 131

Code

function forward_update_5() {
  $ret = array();
  db_add_field($ret, 'forward_log', 'uid', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'forward_log', 'hostname', array(
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Hostname of the user who triggered the event.',
  ));
  db_add_index($ret, 'forward_log', 'forward_uid', array(
    'uid',
  ));
  db_add_index($ret, 'forward_log', 'forward_hostname', array(
    'hostname',
  ));
  return $ret;
}