-- Deploy gaia:api_2016_09_01_add_columns_for_service to mysql

BEGIN;

-- XXX Add DDLs here.

ALTER TABLE `api_serviceregisteritem` ADD COLUMN `is_delete` bool  DEFAULT FALSE;
ALTER TABLE `api_serviceitem` ADD COLUMN `is_delete` bool  DEFAULT FALSE;

ALTER TABLE `api_serviceregisteritem` ADD COLUMN `serviceitem_id` int   NULL;

ALTER TABLE `api_serviceregisteritem` ADD CONSTRAINT `serviceitem_id_refs_id_137a11ee` FOREIGN KEY (`serviceitem_id`) REFERENCES `api_serviceitem` (`id`);

ALTER TABLE `api_serviceregister` ADD COLUMN `add_num` int DEFAULT 0;

COMMIT;
