function linkchecker_update_7001 in Link checker 7
Increase the size of 'urlhash' field for drupal_hash_base64() hashes.
File
- ./
linkchecker.install, line 241 - Installation file for Link Checker module.
Code
function linkchecker_update_7001() {
db_drop_unique_key('linkchecker_link', 'urlhash');
$spec = array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'description' => 'The indexable hash of the {linkchecker_link}.url.',
);
db_change_field('linkchecker_link', 'urlhash', 'urlhash', $spec, array(
'unique keys' => array(
'urlhash' => array(
'urlhash',
),
),
));
return t('Extended data length of {linkchecker_link}.urlhash field.');
}