【调整】恢复2022年1月份以前的数据库升级脚本,方便开源版本用户,通过近30多次的数据库升级,近400次的代码迭代,可以无缝升级到专业版。

This commit is contained in:
大灰灰
2022-11-25 13:56:53 +08:00
parent 1d56e3c92e
commit 80067c13d8
70 changed files with 42 additions and 74461 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -1,71 +0,0 @@
/*
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

@@ -1,28 +0,0 @@
/*
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

@@ -1,35 +0,0 @@
/*
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;

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -1,44 +0,0 @@
/*
Navicat Premium Data Transfer
Source Server Type : MySQL
Source Server Version : 50732
Source Schema : coreshop
Target Server Type : MySQL
Target Server Version : 50732
File Encoding : 65001
Date: 22/01/2022 02:20:16
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for CoreCmsOrderDistributionModel
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsOrderDistributionModel`;
CREATE TABLE `CoreCmsOrderDistributionModel` (
`id` int(11) NOT NULL COMMENT '序列',
`orderType` int(11) NOT NULL COMMENT '订单类型',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
`isOpenMailing` tinyint(4) NOT NULL COMMENT '物流快递',
`isOpenHomeDelivery` tinyint(4) NOT NULL COMMENT '同城配送',
`isOpenSelfDelivery` tinyint(4) NOT NULL COMMENT '上门自提',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '订单配送模式' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of CoreCmsOrderDistributionModel
-- ----------------------------
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (1, 1, '', 1, 1, 1);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (2, 2, '', 1, 1, 1);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (3, 3, '', 1, 1, 1);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (4, 4, '', 1, 1, 0);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (5, 6, '', 0, 1, 1);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (6, 7, '', 1, 1, 0);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (7, 8, '', 1, 1, 1);
INSERT INTO `CoreCmsOrderDistributionModel` VALUES (8, 10, '', 1, 0, 1);
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -1,4 +0,0 @@
1、使用20220118版本完整数据库执行sql。
2、后台菜单管理中针对【下单模式设置】导入按钮。存在按钮可不需要导入
3、角色添加权限。
4、注销登录再次进入。

Binary file not shown.

View File

@@ -1,4 +0,0 @@
ALTER TABLE WeChatTransactionComponentGoodSKU modify column costprice decimal(10, 2) NOT NULL;
ALTER TABLE WeChatTransactionComponentGoodSKU modify column marketPrice decimal(10, 2) NOT NULL;
ALTER TABLE WeChatTransactionComponentGoodSKU modify column salePrice decimal(10, 2) NOT NULL;

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -1,70 +0,0 @@
/*
Navicat Premium Data Transfer
Source Server Type : MySQL
Source Server Version : 50732
Source Schema : coreshop
Target Server Type : MySQL
Target Server Version : 50732
File Encoding : 65001
Date: 11/02/2022 05:22:51
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for CoreCmsAgentOrderDetails
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsAgentOrderDetails`;
CREATE TABLE `CoreCmsAgentOrderDetails` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
`agentOrderId` int(11) NULL DEFAULT NULL COMMENT '代理商佣金订单',
`orderId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户订单编号',
`productPrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '货品单价',
`amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '结算佣金',
`goodId` int(11) NULL DEFAULT NULL COMMENT '商品序列',
`name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称',
`addon` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '货品明细序列号存储',
`productId` int(11) NULL DEFAULT NULL COMMENT '货品序列',
`productNums` int(11) NULL DEFAULT NULL COMMENT '货品数量',
`promotionAmount` decimal(10, 2) NULL DEFAULT NULL COMMENT '货品优惠总金额',
`imageUrl` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片',
`remark` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注',
`createTime` datetime NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of CoreCmsAgentOrderDetails
-- ----------------------------
-- ----------------------------
-- Table structure for CoreCmsDistributionOrderDetails
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsDistributionOrderDetails`;
CREATE TABLE `CoreCmsDistributionOrderDetails` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
`distributionOrderId` int(11) NULL DEFAULT NULL COMMENT '代理商佣金订单',
`orderId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户订单编号',
`productPrice` decimal(10, 2) NULL DEFAULT NULL COMMENT '货品单价',
`amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '结算金额',
`goodId` int(11) NULL DEFAULT NULL COMMENT '商品序列',
`name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称',
`addon` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '货品明细序列号存储',
`productId` int(11) NULL DEFAULT NULL COMMENT '货品序列',
`productNums` int(11) NULL DEFAULT NULL COMMENT '货品数量',
`promotionAmount` decimal(10, 2) NULL DEFAULT NULL COMMENT '货品优惠总金额',
`imageUrl` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片',
`remark` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注',
`createTime` datetime NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of CoreCmsDistributionOrderDetails
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,41 @@
CREATE TABLE [dbo].[WeChatAccessToken](
[id] [INT] IDENTITY(1,1) NOT NULL,
[appType] [INT] NOT NULL,
[appId] [NVARCHAR](50) NOT NULL,
[accessToken] [NVARCHAR](250) NOT NULL,
[expireTimestamp] [BIGINT] NOT NULL,
[updateTimestamp] [BIGINT] NOT NULL,
[createTimestamp] [BIGINT] NOT NULL,
CONSTRAINT [PK_WeChatAccessToken] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>1С<EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'appType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'΢<EFBFBD><EFBFBD>appId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'appId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'΢<EFBFBD><EFBFBD>accessToken' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'accessToken'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD>ֹʱ<EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'expireTimestamp'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'updateTimestamp'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken', @level2type=N'COLUMN',@level2name=N'createTimestamp'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'΢<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WeChatAccessToken'
GO

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,3 +0,0 @@
1、使用20220111版本数据库执行脚本即可。
2、菜单中导入新的action。
3、角色中增加菜单权限即可。

Binary file not shown.

View File

@@ -1 +0,0 @@
bak和sql二选一。

Binary file not shown.

View File

@@ -1,4 +0,0 @@
1、使用20220117版本完整数据库执行sql。
2、后台菜单管理中针对【下单模式设置】导入按钮。存在按钮可不需要导入
3、角色添加权限。
4、注销登录再次进入。

Binary file not shown.