function yandex_metrics_reports_update_6200 in Yandex.Metrics 6.2
Added primary key field.
File
- yandex_metrics_reports/
yandex_metrics_reports.install, line 68 - Install, uninstall and update the module.
Code
function yandex_metrics_reports_update_6200() {
$spec = array(
'description' => 'The id for url.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
);
$ret = array();
db_add_field($ret, 'yandex_metrics_reports_popular_content', 'yid', $spec, array(
'primary key' => array(
'yid',
),
));
return $ret;
}