You are here

function statistics_update_7000 in Drupal 7

Update the {accesslog}.sid column to match the length of {sessions}.sid

Related topics

File

modules/statistics/statistics.install, line 147
Install, update, and uninstall functions for the Statistics module.

Code

function statistics_update_7000() {
  db_change_field('accesslog', 'sid', 'sid', array(
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Browser session ID of user that visited page.',
  ));
}