function system_update_1016 in Drupal 5
Allow for longer URL encoded (%NN) UTF-8 characters in the location field of watchdog table.
Related topics
File
- modules/
system/ system.install, line 3421
Code
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");
break;
case 'pgsql':
db_change_column($ret, 'watchdog', 'location', 'location', 'text', array(
'not null' => TRUE,
'default' => "''",
));
break;
}
return $ret;
}