function uc_discounts_update_6003 in Ubercart Discounts (Alternative) 6.2
Same name and namespace in other branches
- 7.2 uc_discounts/uc_discounts.install \uc_discounts_update_6003()
#1100790, Add the ability for a discount max applications to be limited to number of required products in the cart
File
- uc_discounts/
uc_discounts.install, line 629 - Install hooks for uc_discounts.module.
Code
function uc_discounts_update_6003() {
$schema = uc_discounts_schema();
$ret = array();
db_add_field($ret, 'uc_discounts', 'limit_max_times_applied', $schema['uc_discounts']['fields']['limit_max_times_applied']);
db_query("UPDATE {uc_discounts} SET required_product = '' WHERE required_product = 'none'");
return $ret;
}