Showing
1 changed file
with
12 additions
and
0 deletions
@@ -134,6 +134,18 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | @@ -134,6 +134,18 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | ||
134 | Alter table product_keywords ADD column `product_skn` int(11) unsigned default 0; | 134 | Alter table product_keywords ADD column `product_skn` int(11) unsigned default 0; |
135 | create index keywords_skn on product_keywords(`product_skn`); | 135 | create index keywords_skn on product_keywords(`product_skn`); |
136 | 136 | ||
137 | + | ||
138 | +-- 2.8 平台商品属性值表 | ||
139 | + | ||
140 | + CREATE TABLE product_attribute_property_values ( | ||
141 | + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
142 | + `product_skn` int(11) unsigned NOT NULL, | ||
143 | + `attribute_id` int(11) unsigned NOT NULL COMMENT '品类属性ID', | ||
144 | + `attribute_value_id` int(11) unsigned NOT NULL COMMENT '品类属性值ID', | ||
145 | + `display_position` int(1) unsigned DEFAULT '1' COMMENT '1:基础商品-非销售属性 2:网销信息-上架后补全信息 3:网销信息-商品参数', | ||
146 | + PRIMARY KEY (`id`), | ||
147 | + KEY `attribute_pro_skn_attrid` (`product_skn`,`attribute_id`) | ||
148 | + ) ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT '平台商品属性值表'; | ||
137 | 149 | ||
138 | -- 3 数据需要特殊割接 | 150 | -- 3 数据需要特殊割接 |
139 | 151 |
-
Please register or login to post a comment