-- Deploy gaia:2017_05_27_shopcart to mysql

BEGIN;

ALTER TABLE `api_shopcart` ADD COLUMN `service_item_id` integer;
ALTER TABLE `api_shopcart` ADD COLUMN `number` integer NOT NULL DEFAULT 1;
ALTER TABLE `api_shopcart` ADD COLUMN `update_time` datetime(6);

CREATE INDEX `api_shopcart_8e55ce85` ON `api_shopcart` (`service_item_id`);
ALTER TABLE `api_shopcart` ADD CONSTRAINT `service_item_id_refs_id_033042a3` FOREIGN KEY (`service_item_id`) REFERENCES `api_serviceitem` (`id`);

COMMIT;
