-- Deploy gaia:api_2017_05_31_alter_service_comment_service_item_id to mysql

BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `api_servicecomment` ADD COLUMN `service_item_id` integer DEFAULT NULL;
CREATE INDEX `api_servicecomment_432fe456` ON `api_servicecomment` (`service_item_id`);
ALTER TABLE `api_servicecomment` ADD COLUMN `is_effect` bool NOT NULL DEFAULT 1;

ALTER TABLE `api_servicecomment` ADD COLUMN `user_id` integer DEFAULT NULL;
CREATE INDEX `api_servicecomment_1ffdedc6` ON `api_servicecomment` (`user_id`);

COMMIT;
