You are here

function linkchecker_update_6212 in Link checker 6.2

Change unique key and column name 'token' into 'urlhash'.

File

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

Code

function linkchecker_update_6212() {
  $ret = array();
  db_drop_unique_key($ret, 'linkchecker_links', 'token');
  db_change_field($ret, 'linkchecker_links', 'token', 'urlhash', array(
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
  ));
  db_add_unique_key($ret, 'linkchecker_links', 'urlhash', array(
    'urlhash',
  ));
  return $ret;
}