function yandex_metrics_reports_update_7202 in Yandex.Metrics 8.3
Same name and namespace in other branches
- 7.3 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_update_7202()
- 7.2 yandex_metrics_reports/yandex_metrics_reports.install \yandex_metrics_reports_update_7202()
Enlarge URL field size for popular content database table.
File
- yandex_metrics_reports/
yandex_metrics_reports.install, line 120 - Install, uninstall and update the module.
Code
function yandex_metrics_reports_update_7202() {
db_drop_unique_key('yandex_metrics_reports_popular_content', 'url');
db_change_field('yandex_metrics_reports_popular_content', 'url', 'url', array(
'description' => 'The url obtained from Yandex.Metrika.',
'type' => 'varchar',
'length' => 2048,
'not null' => TRUE,
'default' => '',
), array(
'indexes' => array(
'url' => array(
array(
'url',
255,
),
),
),
));
}