admin update for type and company_id mv from brand to biz

This commit is contained in:
xxb
2021-08-05 15:02:26 +08:00
committed by lccsw
parent 069ab57c98
commit d32fc90473
8 changed files with 58 additions and 60 deletions
+4
View File
@@ -24,6 +24,8 @@ create table lc_biz (
u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商家表';
alter table lc_biz add column type tinyint(1) not null default 0 comment '类型:1-直营店,2-二网,3-合作店' after floor;
alter table lc_biz add column company_id int not null default 0 comment '公司ID' after type;
-- ----------------------------
-- Title:品牌表
@@ -42,6 +44,8 @@ create table lc_biz_brand (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='品牌表';
alter table lc_biz_brand add column type tinyint(1) not null default 0 comment '类型:1-直营店,2-二网,3-合作店' after brand_logo;
alter table lc_biz_brand add column company_id int not null default 0 comment '公司ID' after type;
alter table lc_biz_brand drop column type;
alter table lc_biz_brand drop column company_id;
-- ----------------------------
-- Title:商家标签关系