Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.41 diff -u -p -r1.41 system.install --- modules/system/system.install 20 Nov 2006 03:39:02 -0000 1.41 +++ modules/system/system.install 20 Nov 2006 03:53:39 -0000 @@ -537,7 +537,7 @@ function system_install() { message longtext NOT NULL, severity tinyint unsigned NOT NULL default '0', link varchar(255) NOT NULL default '', - location varchar(128) NOT NULL default '', + location text NOT NULL default '', referer varchar(128) NOT NULL default '', hostname varchar(128) NOT NULL default '', timestamp int NOT NULL default '0', @@ -1001,7 +1001,7 @@ function system_install() { message text NOT NULL, severity smallint_unsigned NOT NULL default '0', link varchar(255) NOT NULL default '', - location varchar(128) NOT NULL default '', + location text NOT NULL default '', referer varchar(128) NOT NULL default '', hostname varchar(128) NOT NULL default '', timestamp int NOT NULL default '0', @@ -3376,6 +3376,23 @@ function system_update_1014() { } /** + * Allow for longer URL encoded (%NN) UTF-8 characters in the location field of watchdog table. + */ +function system_update_1015() { + $ret = array(); + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + $ret[] = update_sql("ALTER TABLE {watchdog} CHANGE COLUMN location location text NOT NULL default ''"); + break; + case 'pgsql': + db_change_column($ret, 'watchdog', 'location', 'location', 'text', array('not null' => TRUE, 'default' => "''")); + break; + } + return $ret; +} + +/** * @} End of "defgroup updates-4.7-to-x.x" */