-- Deploy gaia:2019-10-09-add_new_column_with_service_about_more_buy to mysql

BEGIN;

alter table `api_serviceitem` add column `parent_id` integer NOT NULL;
CREATE INDEX `api_serviceitem_dda537fd` ON `api_serviceitem` (`parent_id`);
alter table `api_skupricerule` add column `more_buy_count` integer;
alter table `api_serviceitemprice` add column `more_buy_price` integer;
alter table `api_special` add column (`is_more_buy` bool NOT NULL, `more_buy_count` integer);

COMMIT;
