You are here

function uc_wishlist_update_6001 in UC Wish List 6

Update function used to add the description column.

File

./uc_wishlist.install, line 156
uc_wishlist installation routine. Creates uc_wishlists and uc_wishlist_products tables.

Code

function uc_wishlist_update_6001() {
  if (!db_field_exists('uc_wishlists', 'description')) {

    // Create a description column.
    db_add_field('uc_wishlists', 'description', array(
      'description' => 'The description of the wish list.',
      'type' => 'text',
      'size' => 'medium',
      'not null' => TRUE,
    ));
  }
}