From c8f19ce0aa8fece617816b01d485409db9a00310 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Mon, 27 Mar 2023 02:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=87=E7=BA=A7=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/MySql/20230327/升级脚本/1、创建表.sql | 13 ------------- 数据库/MySql/20230327/升级脚本/2、插入示例数据.sql | 8 ++++---- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/数据库/MySql/20230327/升级脚本/1、创建表.sql b/数据库/MySql/20230327/升级脚本/1、创建表.sql index 3e3667f1..e69de29b 100644 --- a/数据库/MySql/20230327/升级脚本/1、创建表.sql +++ b/数据库/MySql/20230327/升级脚本/1、创建表.sql @@ -1,13 +0,0 @@ -create table if not exists CoreCmsTopUpType -( - id int auto_increment comment '序列' - primary key, - title varchar(50) not null comment '标题', - defaultMoney int default 0 not null comment '充值金额', - giftMoney int default 0 not null comment '赠送金额', - giftPoint int default 0 not null comment '赠送积分', - sortId int default 1 not null comment '显示排序', - isEnable bit default b'1' not null comment '是否启用', - description varchar(100) charset utf8 null comment '说明' -) - comment '充值类型'; \ No newline at end of file diff --git a/数据库/MySql/20230327/升级脚本/2、插入示例数据.sql b/数据库/MySql/20230327/升级脚本/2、插入示例数据.sql index d0f9522f..673b40bf 100644 --- a/数据库/MySql/20230327/升级脚本/2、插入示例数据.sql +++ b/数据库/MySql/20230327/升级脚本/2、插入示例数据.sql @@ -1,4 +1,4 @@ -INSERT INTO coreshop.CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (1, '冲100送10', 100, 10, 0, 3, true, '冲100送10'); -INSERT INTO coreshop.CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (2, '冲10元送5元', 1, 5, 7, 4, true, '冲10元送5元'); -INSERT INTO coreshop.CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (3, '冲500送50', 500, 50, 0, 2, true, '冲500送50'); -INSERT INTO coreshop.CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (4, '冲1000送120', 1000, 120, 0, 1, true, '冲1000送120'); +INSERT INTO CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (1, '冲100送10', 100, 10, 0, 3, true, '冲100送10'); +INSERT INTO CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (2, '冲10元送5元', 1, 5, 7, 4, true, '冲10元送5元'); +INSERT INTO CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (3, '冲500送50', 500, 50, 0, 2, true, '冲500送50'); +INSERT INTO CoreCmsTopUpType (id, title, defaultMoney, giftMoney, giftPoint, sortId, isEnable, description) VALUES (4, '冲1000送120', 1000, 120, 0, 1, true, '冲1000送120');