From 939df0b3cd0c2c80e700b886686a4b4753b8b1ec Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Dec 2008 19:22:09 +0000 Subject: - Patch #107824 by Dave Reid, AlexisWilke et al: convert certain URL fields from VARCHAR to TEXT to avoid errors. --- modules/statistics/statistics.install | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'modules/statistics/statistics.install') diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install index 5366b0163..e835cf317 100644 --- a/modules/statistics/statistics.install +++ b/modules/statistics/statistics.install @@ -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,11 @@ function statistics_schema() { return $schema; } +/** + * Allow longer referrers. + */ +function statistics_update_7000() { + $ret = array(); + db_change_field($ret, 'accesslog', 'url', 'url', array('type' => 'text', 'not null' => FALSE)); + return $ret; +} -- cgit v1.2.3