You are here

function uc_coupon_update_6006 in Ubercart Discount Coupons 6

File

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

Code

function uc_coupon_update_6006() {
  $ret = array();
  if (!db_column_exists('uc_coupons', 'created')) {
    db_add_field($ret, 'uc_coupons', 'created', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ));
    $ret[] = update_sql("UPDATE {uc_coupons} SET created = " . time());
  }
  return $ret;
}