function forward_update_5 in Forward 7
Same name and namespace in other branches
- 6 forward.install \forward_update_5()
Add uid and hostname to log table
File
- ./
forward.install, line 190 - Install, update and uninstall functions for the forward module.
Code
function forward_update_5() {
$ret = array();
db_add_field('forward_log', 'uid', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
db_add_field('forward_log', 'hostname', array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Hostname of the user who triggered the event.',
));
db_add_index('forward_log', 'forward_uid', array(
'uid',
));
db_add_index('forward_log', 'forward_hostname', array(
'hostname',
));
return t('Forward module log table updated.');
}