function favorites_update_6002 in Favorites 6
Implements hook_update_N() for update 6002.
Changes:
- Remove duplicate unique key 'fid' as of http://drupal.org/node/1097242
- Alter the value length of query column in the database as of issue http://drupal.org/node/1080340.
- Alter the value length of path column in the database.
File
- ./
favorites.install, line 97 - Install, update and uninstall functions for the Favorites module.
Code
function favorites_update_6002() {
$ret = array();
db_drop_unique_key($ret, 'favorites', 'fid');
db_change_field($ret, 'favorites', 'query', 'query', array(
'description' => "The query parameters for the saved path.",
'type' => 'varchar',
'length' => 1024,
'not null' => TRUE,
));
db_change_field($ret, 'favorites', 'path', 'path', array(
'description' => 'The favorited path',
'type' => 'varchar',
'length' => 1024,
'not null' => TRUE,
));
return $ret;
}