You are here

function uc_wishlist_update_7000 in UC Wish List 7

Update function used to add the private column.

Return value

none Returns nothing.

File

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

Code

function uc_wishlist_update_7000() {
  if (!db_field_exists('uc_wishlists', 'private')) {

    // Create a private column.
    db_add_field('uc_wishlists', 'private', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'description' => 'Private',
    ));
  }
}