You are here

function uc_discounts_update_6001 in Ubercart Discounts (Alternative) 6.2

Same name and namespace in other branches
  1. 7.2 uc_discounts/uc_discounts.install \uc_discounts_update_6001()

#984718, Add an activates_on date to discounts.

File

uc_discounts/uc_discounts.install, line 606
Install hooks for uc_discounts.module.

Code

function uc_discounts_update_6001() {
  $schema = uc_discounts_schema();
  $ret = array();
  db_add_field($ret, 'uc_discounts', 'has_activation', $schema['uc_discounts']['fields']['has_activation']);
  db_add_field($ret, 'uc_discounts', 'activates_on', $schema['uc_discounts']['fields']['activates_on']);
  return $ret;
}