You are here

function favorites_update_7001 in Favorites 7.2

Add a weight property for each favorite.

File

./favorites.install, line 69
Install, update and uninstall functions for the Favorites module.

Code

function favorites_update_7001(&$sandbox) {

  // Add the schema.
  $weight = array(
    'description' => 'The weight of the favorite',
    'type' => 'int',
    'size' => 'normal',
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('favorites', 'weight', $weight);
}