You are here

function linkchecker_update_5203 in Link checker 5.2

Change default value for linkchecker_links.code to -1.

fsockopen may return 0 as an indication that the error occurred before the connect() call. This is most likely due to a problem initializing the socket.

File

./linkchecker.install, line 321
Installation file for Link Checker module.

Code

function linkchecker_update_5203() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {linkchecker_links} MODIFY COLUMN `code` INT NOT NULL DEFAULT -1");
      break;
  }
  return $ret;
}