-- Deploy gaia:2020_09_16_service_add_upgrade to mysql

BEGIN;


CREATE TABLE `api_serviceregistertag` ( `id` int(11) NOT NULL AUTO_INCREMENT comment '主键', `serviceregister_id` int(11) NOT NULL comment '注册美购id', `tag_id` int(11) NOT NULL comment '标签id', PRIMARY KEY (`id`), KEY `idx_api_serviceregistertag_b0dc1e29` (`serviceregister_id`), KEY `idx_api_serviceregistertag_76f094bc` (`tag_id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 comment '注册美购关联标签表';
alter table `api_service` add column `upgrade` boolean default False comment '是否升级标识';
alter table `api_serviceregister` add column `upgrade` boolean default False comment '是否升级标识';
alter table `api_serviceitem` add column `image_header` varchar(300) default '' comment 'sku头图', add column `property_id` int(11) default NULL comment 'sku属性值组合id';
alter table `api_serviceregisteritem` add column `image_header` varchar(300) default '' comment 'sku头图', add column `property_id` int(11) default NULL comment 'sku属性值组合id';

COMMIT;
