-- Revert gaia:api_2016_11_17_sku_1 from mysql

BEGIN;

ALTER TABLE `api_serviceitem`
DROP COLUMN `total_num`,
DROP COLUMN `sku_stock`,
DROP COLUMN `sku_stock_lte_zero`;

ALTER TABLE `api_order`
DROP COLUMN `service_item_id`,
DROP COLUMN `service_item_price_id`,
DROP COLUMN `activity_type`,
DROP COLUMN `activity_id`;

ALTER TABLE `pay_servicesnapshot`
DROP COLUMN `price_info`,
DROP COLUMN `rich_text`,
DROP COLUMN `coupon_id`,
DROP COLUMN `coupon_info_id`,
DROP COLUMN `coupon_name`,
DROP COLUMN `coupon_value`,
DROP COLUMN `payment_without_coupon`;

ALTER TABLE `api_seckillnotify`
DROP foreign KEY special_item_id_refs_id_51556671,
DROP KEY person_id_special_item_id,
DROP COLUMN `special_item_id`;

ALTER TABLE `api_specialitem`
DROP COLUMN `tip`;

DROP TABLE `api_serviceitemprice`;

DROP TABLE `api_skupricerule`;

COMMIT;
