You are here

function linkchecker_update_6208 in Link checker 6.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 485
Installation file for Link Checker module.

Code

function linkchecker_update_6208() {
  $ret = array();
  db_change_field($ret, 'linkchecker_links', 'code', 'code', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => -1,
  ));
  return $ret;
}