Index: modules/statistics/statistics.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/statistics/statistics.install,v
retrieving revision 1.27
diff -u -p -r1.27 statistics.install
--- modules/statistics/statistics.install	22 Aug 2010 13:55:53 -0000	1.27
+++ modules/statistics/statistics.install	7 Dec 2010 08:07:00 -0000
@@ -34,7 +34,7 @@ function statistics_schema() {
       ),
       'sid' => array(
         'type' => 'varchar',
-        'length' => 64,
+        'length' => 128,
         'not null' => TRUE,
         'default' => '',
         'description' => 'Browser session ID of user that visited page.',
@@ -142,6 +142,20 @@ function statistics_schema() {
  */
 
 /**
+ * Increase length of the 'sid' column to 128 characters.
+ */
+function statistics_update_7000() {
+  $sid_spec = array(
+    'type' => 'varchar',
+    'length' => 128,
+    'not null' => TRUE,
+    'default' => '',
+    'description' => 'Browser session ID of user that visited page.',
+  );
+  db_change_field('accesslog', 'sid', 'sid', $sid_spec);
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
  */
