function ad_update_6004 in Advertisement 6.3
Same name and namespace in other branches
- 6.2 ad.install \ad_update_6004()
Introduce "extra" field for ad statistics and clicks, optionally allowing add-on modules to provide additional granularity.
File
- ./
ad.install, line 424 - Advertisement module database schema.
Code
function ad_update_6004() {
$ret = array();
db_add_field($ret, 'ad_statistics', 'extra', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Allow add-on modules to provide additional statistics granularity.',
), array(
'indexes' => array(
'extra' => array(
'extra',
),
),
));
db_add_field($ret, 'ad_clicks', 'extra', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Allow add-on modules to provide additional statistics granularity.',
), array(
'indexes' => array(
'extra' => array(
'extra',
),
),
));
return $ret;
}