#98551 by sammys. The de facto standard for URL length is 2048 characters. So 128 isn't enough.

5.x
Neil Drumm 2006-11-26 23:42:15 +00:00
parent 69ea16f669
commit 14b0d96870
1 changed files with 20 additions and 3 deletions

View File

@ -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',
@ -1002,7 +1002,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',
@ -3396,7 +3396,24 @@ function system_update_1015() {
}
/**
* @} End of "defgroup updates-4.7-to-x.x"
* Allow for longer URL encoded (%NN) UTF-8 characters in the location field of watchdog table.
*/
function system_update_1016() {
$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-5.0"
*/