Index: modules/dblog/dblog.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/dblog/dblog.install,v
retrieving revision 1.6
diff -u -p -r1.6 dblog.install
--- modules/dblog/dblog.install	4 Nov 2007 14:33:06 -0000	1.6
+++ modules/dblog/dblog.install	9 Dec 2008 19:11:20 -0000
@@ -75,10 +75,8 @@ function dblog_schema() {
         'description' => t('URL of the origin of the event.'),
       ),
       'referer' => array(
-        'type' => 'varchar',
-        'length' => 128,
-        'not null' => TRUE,
-        'default' => '',
+        'type' => 'text',
+        'not null' => FALSE,
         'description' => t('URL of referring page.'),
       ),
       'hostname' => array(
@@ -102,3 +100,21 @@ function dblog_schema() {
   return $schema;
 }
 
+/**
+ * @defgroup updates-5.x-to-6.x Database logging updates from 5.x to 6.x
+ * @{
+ */
+
+/**
+ * Allow longer referrers.
+ */
+function dblog_update_6000() {
+  $ret = array();
+  db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'text', 'not null' => FALSE));
+  return $ret;
+}
+
+/**
+ * @} End of "defgroup updates-5.x-to-6.x"
+ * The next series of updates should start at 7000.
+ */
Index: modules/statistics/statistics.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/statistics/statistics.install,v
retrieving revision 1.13
diff -u -p -r1.13 statistics.install
--- modules/statistics/statistics.install	18 Dec 2007 12:59:22 -0000	1.13
+++ modules/statistics/statistics.install	9 Dec 2008 19:11:21 -0000
@@ -76,8 +76,7 @@ function statistics_schema() {
         'description' => t('Internal path to page visited (relative to Drupal root.)'),
       ),
       'url' => array(
-        'type' => 'varchar',
-        'length' => 255,
+        'type' => 'text',
         'not null' => FALSE,
         'description' => t('Referrer URI.'),
       ),
@@ -119,3 +118,21 @@ function statistics_schema() {
   return $schema;
 }
 
+/**
+ * @defgroup updates-5.x-to-6.x Statistics updates from 5.x to 6.x
+ * @{
+ */
+
+/**
+ * Allow longer referrers.
+ */
+function statistics_update_6000() {
+  $ret = array();
+  db_change_field($ret, 'accesslog', 'url', 'url', array('type' => 'text', 'not null' => FALSE));
+  return $ret;
+}
+
+/**
+ * @} End of "defgroup updates-5.x-to-6.x"
+ * The next series of updates should start at 7000.
+ */
