You are here

function favorites_update_6002 in Favorites 6

Implements hook_update_N() for update 6002.

Changes:

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;
}