You are here

function uc_coupon_update_4 in Ubercart Discount Coupons 5

File

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

Code

function uc_coupon_update_4() {
  $ret[] = update_sql("ALTER TABLE {uc_coupons} ADD COLUMN bulk int(1) NOT NULL default 0");
  $ret[] = update_sql("ALTER TABLE {uc_coupons} ADD COLUMN bulk_seed char(32) NOT NULL");
  $ret[] = update_sql("UPDATE {uc_coupons} SET bulk_seed = MD5(RAND()) WHERE bulk_seed = ''");
  return $ret;
}