system_update_1016

Definition

system_update_1016()
system/system.install, line 3421

Description

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

Code

<?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;
}
?>