ALTER TABLE `mallink`.`wx_coupon_0` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_0 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_0` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_1` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_1 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_1` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_2` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_2 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_2` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_3` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_3 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_3` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_4` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_4 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_4` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_5` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_5 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_5` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_6` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_6 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_6` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_7` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_7 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_7` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_8` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_8 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_8` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_9` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_9 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_9` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_10` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_10 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_10` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_11` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_11 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_11` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_12` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_12 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_12` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_13` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_13 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_13` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_14` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_14 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_14` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_15` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_15 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_15` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_16` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_16 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_16` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_17` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_17 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_17` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_18` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_18 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_18` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_19` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_19 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_19` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_20` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_20 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_20` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_21` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_21 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_21` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_22` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_22 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_22` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_23` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_23 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_23` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_24` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_24 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_24` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_25` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_25 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_25` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_26` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_26 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_26` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_27` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_27 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_27` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_28` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_28 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_28` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_29` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_29 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_29` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_30` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_30 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_30` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_31` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_31 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_31` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_32` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_32 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_32` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_33` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_33 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_33` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_34` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_34 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_34` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_35` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_35 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_35` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_36` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_36 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_36` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_37` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_37 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_37` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_38` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_38 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_38` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_39` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_39 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_39` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_40` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_40 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_40` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_41` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_41 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_41` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_42` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_42 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_42` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_43` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_43 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_43` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_44` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_44 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_44` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_45` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_45 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_45` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_46` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_46 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_46` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_47` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_47 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_47` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_48` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_48 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_48` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_49` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_49 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_49` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_50` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_50 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_50` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_51` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_51 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_51` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_52` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_52 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_52` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_53` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_53 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_53` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_54` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_54 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_54` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_55` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_55 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_55` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_56` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_56 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_56` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_57` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_57 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_57` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_58` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_58 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_58` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_59` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_59 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_59` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_60` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_60 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_60` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_61` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_61 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_61` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_62` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_62 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_62` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_63` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_63 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_63` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_64` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_64 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_64` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_65` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_65 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_65` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_66` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_66 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_66` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_67` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_67 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_67` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_68` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_68 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_68` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_69` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_69 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_69` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_70` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_70 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_70` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_71` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_71 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_71` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_72` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_72 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_72` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_73` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_73 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_73` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_74` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_74 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_74` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_75` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_75 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_75` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_76` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_76 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_76` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_77` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_77 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_77` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_78` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_78 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_78` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_79` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_79 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_79` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_80` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_80 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_80` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_81` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_81 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_81` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_82` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_82 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_82` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_83` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_83 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_83` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_84` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_84 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_84` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_85` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_85 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_85` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_86` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_86 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_86` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_87` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_87 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_87` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_88` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_88 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_88` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_89` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_89 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_89` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_90` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_90 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_90` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_91` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_91 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_91` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_92` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_92 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_92` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_93` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_93 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_93` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_94` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_94 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_94` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_95` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_95 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_95` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_96` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_96 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_96` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_97` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_97 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_97` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_98` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_98 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_98` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_99` ADD COLUMN `coupon_id` bigint(20) AFTER `id`; update wx_coupon_99 set coupon_id = id; ALTER TABLE `mallink`.`wx_coupon_99` MODIFY COLUMN `coupon_id` bigint(20) NOT NULL AFTER `id`; ALTER TABLE `mallink`.`wx_coupon_0` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_1` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_2` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_3` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_4` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_5` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_6` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_7` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_8` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_9` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_10` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_11` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_12` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_13` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_14` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_15` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_16` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_17` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_18` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_19` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_20` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_21` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_22` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_23` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_24` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_25` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_26` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_27` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_28` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_29` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_30` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_31` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_32` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_33` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_34` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_35` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_36` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_37` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_38` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_39` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_40` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_41` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_42` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_43` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_44` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_45` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_46` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_47` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_48` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_49` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_50` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_51` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_52` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_53` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_54` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_55` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_56` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_57` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_58` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_59` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_60` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_61` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_62` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_63` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_64` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_65` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_66` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_67` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_68` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_69` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_70` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_71` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_72` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_73` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_74` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_75` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_76` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_77` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_78` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_79` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_80` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_81` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_82` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_83` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_84` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_85` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_86` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_87` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_88` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_89` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_90` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_91` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_92` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_93` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_94` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_95` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_96` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_97` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_98` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`; ALTER TABLE `mallink`.`wx_coupon_99` ADD COLUMN `version` smallint(1) NOT NULL DEFAULT 0 AFTER `is_after_set_price`;