You are here

function adsense_click_update_2 in Google AdSense integration 6

Same name and namespace in other branches
  1. 5.3 contrib/adsense_click/adsense_click.install \adsense_click_update_2()

Implementation of hook_update_n().

File

contrib/adsense_click/adsense_click.install, line 122
Install file of the adsense_click module.

Code

function adsense_click_update_2() {
  $ret = array();
  db_add_field($ret, 'adsense_clicks', 'title', array(
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_field($ret, 'adsense_clicks', 'referrer', array(
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
    'default' => '',
  ));
  return $ret;
}