Files
yshopb2c/sql/3.1升级3.2sql.sql

33 lines
2.1 KiB
MySQL
Raw Normal View History

2020-12-21 13:59:06 +08:00
-- ----------------------------
-- 字段修改
-- ----------------------------
ALTER TABLE yx_store_product ADD COLUMN is_integral tinyint(1) ZEROFILL NULL DEFAULT 0 COMMENT '是开启积分兑换' AFTER is_del;
2021-01-04 11:23:10 +08:00
2021-02-23 11:25:42 +08:00
ALTER TABLE yx_store_product ADD COLUMN integral int(11) NULL DEFAULT 0 COMMENT '需要多少积分兑换 只在开启积分兑换时生效' AFTER is_integral;
2021-01-04 11:23:10 +08:00
2020-12-21 13:59:06 +08:00
ALTER TABLE yx_store_product_attr_value ADD COLUMN integral INT(10) DEFAULT 0 COMMENT '需要多少积分兑换' AFTER seckill_price;
2020-12-21 16:57:04 +08:00
ALTER TABLE yx_store_order ADD COLUMN `pay_integral` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '支付积分';
2020-12-21 13:59:06 +08:00
2021-02-02 09:21:36 +08:00
-- ----------------------------
-- Table structure for yx_store_canvas
-- ----------------------------
DROP TABLE IF EXISTS `yx_store_canvas`;
CREATE TABLE `yx_store_canvas` (
`canvas_id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '画布id',
`terminal` tinyint(1) NOT NULL COMMENT '终端 1-小程序 2-H5 3-APP 4-PC',
`json` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '画布json数据',
2021-02-02 10:11:09 +08:00
`type` tinyint(1) DEFAULT 1 COMMENT '类型 1-系统画布 2-自定义页面 3-商家店铺装修',
2021-02-02 09:21:36 +08:00
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '名称',
2021-02-02 10:11:09 +08:00
`shop_id` bigint(20) DEFAULT 0 COMMENT '店铺id当type=3的时候值为具体的店铺id其它情况为0',
`create_time` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_time` timestamp(0) NULL DEFAULT NULL COMMENT '修改时间',
2021-02-02 09:21:36 +08:00
`is_del` tinyint(1) NULL DEFAULT NULL COMMENT '删除标识',
PRIMARY KEY (`canvas_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '画布信息表' ROW_FORMAT = DYNAMIC;
2020-12-21 13:59:06 +08:00