You are here

function commerce_wishlist_update_7001 in Commerce Wishlist 7

File

./commerce_wishlist.install, line 69

Code

function commerce_wishlist_update_7001(&$sandbox) {

  // Change NID Collumn
  db_change_field('commerce_wishlist', 'nid', 'nid', array(
    'type' => 'int',
    'not null' => FALSE,
  ));

  // New collumn qty
  db_add_field('commerce_wishlist', 'quantity', array(
    'type' => 'numeric',
    'size' => 'normal',
    'not null' => TRUE,
    'default' => 0,
    'precision' => 10,
    'scale' => 2,
  ));
}