You are here

function uc_discounts_update_6006 in Ubercart Discounts (Alternative) 7.2

Same name and namespace in other branches
  1. 6.2 uc_discounts/uc_discounts.install \uc_discounts_update_6006()

Issue #1220388: Optionally allow free items to be automatically added to cart.

File

uc_discounts/uc_discounts.install, line 668
Install, update, and uninstall functions for uc_discounts module.

Code

function uc_discounts_update_6006() {
  $spec = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => FALSE,
    'default' => 0,
    'description' => t('Indicates whether free items are added to cart by the module.'),
  );
  db_add_field('uc_discounts', 'add_to_cart', $spec);
}