-- Revert gaia:api_2016_10_25_create_table_seckill_button_servicereg_alter_seckillservice from mysql

BEGIN;
ALTER TABLE `api_specialseckillservice` DROP COLUMN`rank`;

ALTER TABLE `api_specialseckillservice` DROP FOREIGN KEY `seckill_apply_id_refs_id_133d0fa8`;
ALTER TABLE `api_specialseckillservice` DROP COLUMN `seckill_apply_id`;

ALTER TABLE `api_specialseckillservice` DROP FOREIGN KEY `service_item_id_refs_id_30469ee4`;
ALTER TABLE `api_specialseckillservice` DROP COLUMN `service_item_id`;

DROP TABLE `api_doctorseckillapply`;
DROP TABLE `api_specialseckillbutton`;

alter table `api_specialseckillservice` drop index `service_id`, add unique key `service_id` (`service_id`, `special_id`);

COMMIT;
