system_update_1016

Versions
5
system_update_1016()

Allow for longer URL encoded (%NN) UTF-8 characters in the location field of watchdog table.

Related topics

Code

modules/system/system.install, line 3421

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.