You are here

function uc_coupon_update_6002 in Ubercart Discount Coupons 6

File

./uc_coupon.install, line 213
Ubercart uc_coupon.module schema

Code

function uc_coupon_update_6002() {
  $ret = array();
  if (!db_column_exists('uc_coupons', 'valid_from')) {
    db_add_field($ret, 'uc_coupons', 'valid_from', array(
      'type' => 'int',
    ));
    $ret[] = update_sql("UPDATE {uc_coupons} SET valid_from = 0");
  }
  return $ret;
}