mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-24 18:27:21 +08:00
【调整】恢复2022年1月份以前的数据库升级脚本,方便开源版本用户,通过近30多次的数据库升级,近400次的代码迭代,可以无缝升级到专业版。
This commit is contained in:
BIN
数据库/MySql/20220118/升级脚本.rar
Normal file
BIN
数据库/MySql/20220118/升级脚本.rar
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
--【CoreCmsOrder】表新增scene字段,增加场景值功能
|
||||
ALTER TABLE `CoreCmsOrder`
|
||||
ADD COLUMN `scene` int NOT NULL COMMENT '场景值' AFTER `source`;
|
||||
|
||||
--【CoreCmsBillDelivery】表新增thirdPartylogiCode第三方对接物流编码字段
|
||||
ALTER TABLE `CoreCmsBillDelivery`
|
||||
ADD COLUMN `thirdPartylogiCode` int NOT NULL COMMENT '第三方对接物流编码' AFTER `logiNo`;
|
||||
|
||||
COMMIT;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
BIN
数据库/MySql/20220118/完整脚本.rar
Normal file
BIN
数据库/MySql/20220118/完整脚本.rar
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user