增加mysql数据库脚本。内容为增加微信视频号直播自定义组件,接龙功能的sql

This commit is contained in:
JianWeie
2022-01-18 03:40:46 +08:00
parent c6b4c945d5
commit f8627ecff0
7 changed files with 14890 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,71 @@
/*
Navicat Premium Data Transfer
Source Server : localhost-SQLSERVER
Source Server Type : SQL Server
Source Server Version : 15002000
Source Host : 127.0.0.1:1433
Source Catalog : CoreShop
Source Schema : dbo
Target Server Type : MySQL
Target Server Version : 50799
File Encoding : 65001
Date: 17/01/2022 14:35:21
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for CoreCmsSolitaire
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsSolitaire`;
CREATE TABLE `CoreCmsSolitaire` (
`id` int NOT NULL COMMENT '序列',
`title` varchar(250) NOT NULL COMMENT '活动标题',
`thumbnail` varchar(250) NOT NULL COMMENT '缩略图',
`description` varchar(250) NULL COMMENT '活动描述',
`contentBody` longtext NOT NULL COMMENT '活动内容',
`startTime` datetime NOT NULL COMMENT '开始时间',
`endTime` datetime NOT NULL COMMENT '结束时间',
`startBuyPrice` decimal(18, 2) NOT NULL COMMENT '起购价格',
`minDeliveryPrice` decimal(18, 2) NOT NULL COMMENT '起送价格',
`isShow` tinyint NOT NULL COMMENT '是否显示',
`status` int NOT NULL COMMENT '活动状态',
`isDelete` tinyint NOT NULL COMMENT '标注删除',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) COMMENT = '接龙活动表';
-- ----------------------------
-- Records of CoreCmsSolitaire
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for CoreCmsSolitaireItems
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsSolitaireItems`;
CREATE TABLE `CoreCmsSolitaireItems` (
`id` int NOT NULL COMMENT '序列',
`solitaireId` int NOT NULL COMMENT '接龙序列',
`goodId` int NOT NULL COMMENT '商品序列',
`productId` int NOT NULL COMMENT '货品序列',
`price` decimal(18, 2) NOT NULL COMMENT '接龙价',
`activityStock` int NOT NULL COMMENT '活动库存',
`oneCanBuy` int NOT NULL COMMENT '每人可买',
`sortId` int NOT NULL COMMENT '排序',
`isDelete` tinyint NOT NULL COMMENT '标注删除',
PRIMARY KEY (`id`)
) COMMENT = '接龙活动商品表';
-- ----------------------------
-- Records of CoreCmsSolitaireItems
-- ----------------------------
BEGIN;
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,28 @@
/*
Navicat Premium Data Transfer
Source Server : localhost-SQLSERVER
Source Server Type : SQL Server
Source Server Version : 15002000
Source Host : 127.0.0.1:1433
Source Catalog : CoreShop
Source Schema : dbo
Target Server Type : MySQL
Target Server Version : 50799
File Encoding : 65001
Date: 17/01/2022 14:21:43
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Records of SysMenu
-- ----------------------------
BEGIN;
INSERT INTO `SysMenu` VALUES (670, 77, 'solitaire', '接龙', '', '', '', 0, 30, '', NULL, NULL, '0', '0', '2021-06-14 23:52:52.197', NULL), (671, 670, 'solitaires', '接龙列表', '', 'promotion/solitaire/solitaires/index', '', 0, 1, '', NULL, NULL, '0', '0', '2021-06-14 23:53:32.677', NULL), (689, 0, 'wechat', '微信组件', 'layui-icon-login-wechat', '', '', 0, 90, '', NULL, NULL, '0', '0', '2021-01-01 00:00:00.000', NULL), (691, 698, 'thirdcategory', '获取商品类目', '', 'wechat/transactioncomponent/thirdcategory/index', '', 0, 1, '', NULL, NULL, '0', '0', '2021-01-01 00:00:00.000', NULL), (698, 689, 'transactioncomponent', '自定义交易组件', '', '', '', 0, 1, '', NULL, NULL, '0', '0', '2021-07-03 18:38:32.287', NULL), (699, 698, 'goods', '商品管理', '', 'wechat/transactioncomponent/goods/index', '', 0, 10, '', NULL, NULL, '0', '0', '2021-01-01 00:00:00.000', NULL), (716, 698, 'deliverycompany', '快递公司列表', '', 'wechat/transactioncomponent/deliverycompany/index', '', 0, 5, '', NULL, NULL, '0', '0', '2021-07-12 00:04:28.093', NULL), (718, 698, 'auditcategory', '申请商品类目', '', 'wechat/transactioncomponent/auditcategory/index', '', 0, 3, '', NULL, NULL, '0', '0', '2021-07-14 23:21:32.127', NULL);
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,35 @@
/*
Navicat Premium Data Transfer
Source Server : localhost-SQLSERVER
Source Server Type : SQL Server
Source Server Version : 15002000
Source Host : 127.0.0.1:1433
Source Catalog : CoreShop
Source Schema : dbo
Target Server Type : MySQL
Target Server Version : 50799
File Encoding : 65001
Date: 17/01/2022 14:17:31
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
BEGIN;
ALTER TABLE CoreCmsOrder ADD COLUMN scene int NOT NULL COMMENT '场景值' AFTER source;
ALTER TABLE CoreCmsBillDelivery ADD COLUMN thirdPartylogiCode varchar(50) NOT NULL COMMENT '第三方对接物流编码' AFTER logiNo;
--CoreCmsOrderscene字段
ALTER TABLE `CoreCmsOrder`
ADD COLUMN `scene` int NOT NULL COMMENT '场景值' AFTER `source`;
--CoreCmsBillDeliverythirdPartylogiCode第三方对接物流编码字段
ALTER TABLE `CoreCmsBillDelivery`
ADD COLUMN `thirdPartylogiCode` int NOT NULL COMMENT '第三方对接物流编码' AFTER `logiNo`;
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
如果是需要升级请使用20211025版本数据库的前提下直接使用文件夹【升级脚本】内的脚本按照顺序升级第四个脚本根据情况来定。请先查看数据库是否存在两个字段。
如果是全新安装,请直接使用完整脚本执行即可。

View File

@@ -1,3 +1,9 @@
2022-01-18
1、【新增】新增【WeChatTransactionComponentAuditCategory】【WeChatTransactionComponentAuditCategoryAuditLog】【WeChatTransactionComponentDeliveryCompany】【WeChatTransactionComponentGood】【WeChatTransactionComponentGoodAuditLog】【WeChatTransactionComponentGoodSKU】【WeChatTransactionComponentOrder】【WeChatTransactionComponentThirdCategory】8个自定义交易组件表。
2、【新增】【CoreCmsOrder】表新增scene字段增加场景值功能。
3、【新增】【CoreCmsBillDelivery】表新增thirdPartylogiCode第三方对接物流编码字段。
4、【新增】新增【CoreCmsSolitaire】和【CoreCmsSolitaireItems】接龙两个表
2021-10-25
1、【新增】数据库CoreCmsCart表增加objectId字段用于区分来源对象CoreCmsOrder增加objectId字段用于区域订单来源关联。