function adsense_click_update_3 in Google AdSense integration 6
Same name and namespace in other branches
- 5.3 contrib/adsense_click/adsense_click.install \adsense_click_update_3()
Implementation of hook_update_n().
File
- contrib/
adsense_click/ adsense_click.install, line 142 - Install file of the adsense_click module.
Code
function adsense_click_update_3() {
$ret = array();
db_change_field($ret, 'adsense_clicks', 'path', 'path', array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
));
db_change_field($ret, 'adsense_clicks', 'title', 'title', array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
));
db_change_field($ret, 'adsense_clicks', 'referrer', 'referrer', array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
));
db_add_index($ret, 'adsense_clicks', 'path', array(
'path',
));
return $ret;
}