-- Revert gaia:api_2016_08_23_add_columns_for_serviceregister from mysql

BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `api_serviceregister` DROP COLUMN `review_status`;
ALTER TABLE `api_serviceregister` DROP COLUMN `last_review_time`;
ALTER TABLE `api_serviceregister` DROP COLUMN `last_submit_time`;




ALTER TABLE `api_serviceregister` DROP COLUMN `photo_details`;

ALTER TABLE `api_service` DROP COLUMN `photo_details_operate`;
ALTER TABLE `api_service` DROP COLUMN `photo_details_doctor`;

ALTER TABLE `api_serviceregister` DROP FOREIGN KEY `tag_id_refs_id_137a11ef`;
ALTER TABLE `api_serviceregister` DROP COLUMN `project_type_id`;
ALTER TABLE `api_serviceregister` DROP COLUMN `is_register`;


ALTER TABLE `api_service` DROP FOREIGN KEY `tag_id_refs_id_137a11ee`;
ALTER TABLE `api_service` DROP COLUMN `project_type_id`;

ALTER TABLE `api_serviceitem` DROP COLUMN `sort`;
ALTER TABLE `api_serviceregisteritem` DROP COLUMN `sort`;

ALTER TABLE `api_serviceregister` DROP COLUMN `short_description`;
ALTER TABLE `api_serviceregister` DROP COLUMN `image_header`;

ALTER TABLE `api_serviceregister` DROP COLUMN `is_specialreview` ;
COMMIT;
