diff options
-rw-r--r-- | modules/system/system.install | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ce05973a1..9bb327b5e 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -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" */ |