sql缺少integral字段添加

This commit is contained in:
taozi
2021-02-23 11:25:42 +08:00
committed by xuwenbo
parent 013d4ff7d1
commit 81ae014f7c
3 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@
-- ----------------------------
ALTER TABLE yx_store_product ADD COLUMN is_integral tinyint(1) ZEROFILL NULL DEFAULT 0 COMMENT '是开启积分兑换' AFTER is_del;
ALTER TABLE yx_store_product ADD COLUMN integral tinyint(1) ZEROFILL NULL DEFAULT 0 COMMENT '需要多少积分兑换' AFTER is_integral;
ALTER TABLE yx_store_product ADD COLUMN integral int(11) NULL DEFAULT 0 COMMENT '需要多少积分兑换 只在开启积分兑换时生效' AFTER is_integral;
ALTER TABLE yx_store_product_attr_value ADD COLUMN integral INT(10) DEFAULT 0 COMMENT '需要多少积分兑换' AFTER seckill_price;

View File

@ -1,2 +1,4 @@
1、3.0平滑升级3.1 直接导入3.0升级3.1sql.sql特别说明平滑升级只限于没有改过添加过菜单之类的如果你已经添加了菜单请自行解决一下
2、如果是全新下载的直接导入yshop3.1.sql
1、3.0平滑升级3.2 直接导入3.0升级3.1sql.sql再执行3.1升级3.2sql.sql(特别说明:平滑升级只限于没有改过添加过菜单之类的,如果你已经添加了菜单,请自行解决一下)
2、如果你已经是3.1版本了直接执行3.1升级3.2sql.sql即可
3、如果是全新下载的直接导入yshop3.2.sql
4、注意操作数据库属于危险行为请勿用于生产库请事先做好备份再执行sql操作

View File

@ -2345,6 +2345,7 @@ CREATE TABLE `yx_store_product` (
`temp_id` int(10) NULL DEFAULT NULL COMMENT '运费模板ID',
`spec_type` tinyint(1) NULL DEFAULT 0 COMMENT '规格 0单 1多',
`is_integral` tinyint(1) UNSIGNED ZEROFILL NULL DEFAULT NULL COMMENT '是开启积分兑换',
`integral` int(11) NULL DEFAULT 0 COMMENT '需要多少积分兑换 只在开启积分兑换时生效',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_hot`(`is_hot`) USING BTREE,
INDEX `is_benefit`(`is_benefit`) USING BTREE,