-- Deploy gaia:api_2016_11_23_add_table_api_specialactiveservice to mysql

BEGIN;

-- XXX Add DDLs here.

ALTER TABLE `api_specialitem` ADD COLUMN `serviceitem_id` INTEGER;

ALTER TABLE `api_specialitem` ADD CONSTRAINT `serviceitem_id_refs_id_a3c9a8bb` FOREIGN KEY (`serviceitem_id`) REFERENCES `api_serviceitem` (`id`);


ALTER TABLE `api_specialitem` ADD COLUMN `doctorseckillapply_id` INTEGER;

ALTER TABLE `api_specialitem` ADD CONSTRAINT `doctorseckillapply_id_refs_id_41f0d9ae` FOREIGN KEY (`doctorseckillapply_id`) REFERENCES `api_doctorseckillapply` (`id`);


ALTER TABLE `api_specialitem` ADD COLUMN `sell_num` INTEGER default 0;


COMMIT;
