Index: modules/dblog/dblog.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/dblog/dblog.install,v
retrieving revision 1.6.2.1
diff -u -p -r1.6.2.1 dblog.install
--- modules/dblog/dblog.install	6 Jan 2009 15:46:36 -0000	1.6.2.1
+++ modules/dblog/dblog.install	19 Jan 2009 16:37:26 -0000
@@ -75,10 +75,8 @@ function dblog_schema() {
         'description' => 'URL of the origin of the event.',
       ),
       'referer' => array(
-        'type' => 'varchar',
-        'length' => 128,
-        'not null' => TRUE,
-        'default' => '',
+        'type' => 'text',
+        'not null' => FALSE,
         'description' => '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.2.1
diff -u -p -r1.13.2.1 statistics.install
--- modules/statistics/statistics.install	6 Jan 2009 15:46:37 -0000	1.13.2.1
+++ modules/statistics/statistics.install	19 Jan 2009 16:37:26 -0000
@@ -76,8 +76,7 @@ function statistics_schema() {
         'description' => 'Internal path to page visited (relative to Drupal root.)',
       ),
       'url' => array(
-        'type' => 'varchar',
-        'length' => 255,
+        'type' => 'text',
         'not null' => FALSE,
         'description' => '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.
+ */
