-- Revert gaia:2017_03_14_doctor_coupon from mysql

BEGIN;

    ALTER TABLE `api_coupon` DROP COLUMN `coupon_type`, DROP COLUMN `distribution_status`;

    ALTER TABLE `pay_servicesnapshot` DROP COLUMN `coupon_type`, DROP COLUMN `coupon_info`;

    DROP TABLE `api_couponskurestrict`;

    ALTER TABLE `api_coupongift` DROP COLUMN `gift_type`;
    ALTER TABLE `api_gifttocoupon` DROP COLUMN `coupon_enable`;

    ALTER TABLE `api_channelgift` DROP COLUMN `gift_enable`, DROP COLUMN `displayable`;

COMMIT;
