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/dblog/dblog.install | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/dblog/dblog.install') diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install index f4c80bb99..d696de068 100644 --- a/modules/dblog/dblog.install +++ b/modules/dblog/dblog.install @@ -75,10 +75,8 @@ function dblog_schema() { 'description' => 'URL of the origin of the event.', ), 'referer' => array( - 'type' => 'varchar', - 'length' => 128, + 'type' => 'text', 'not null' => FALSE, - 'default' => '', 'description' => 'URL of referring page.', ), 'hostname' => array( @@ -106,12 +104,12 @@ function dblog_schema() { } /** - * Allow NULL values for links. + * Allow NULL values for links and longer referers. */ function dblog_update_7001() { $ret = array(); db_change_field($ret, 'watchdog', 'link', 'link', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => '')); - db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => '')); + db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'text', 'not null' => FALSE)); return $ret; } -- cgit v1.2.3