update_251222.sql 318 B

12345
  1. -- 商品添加参与vip优惠标识 0否 1是
  2. alter table goods add vip_promotion varchar(1) not null default 0 comment '是否参与vip优惠 0否 1是' after shop_id;
  3. -- 更新商品是否参与vip优惠
  4. update goods set vip_promotion = 1 where shop_id in (select shop_id from goods_shop where vip_promotion = '1')