Commit ab17c77c4b202845d73e2000aa8f093e544d948b
1 parent
53c6f62d
修改轮播图必填修改成非必填
Showing
3 changed files
with
4 additions
and
4 deletions
etrade-admin/src/main/java/com/diligrp/etrade/admin/domain/req/BannerCo.java
scripts/etrade-admin/etrade_admin.sql
@@ -12,7 +12,7 @@ CREATE TABLE `banner` ( | @@ -12,7 +12,7 @@ CREATE TABLE `banner` ( | ||
12 | `sort` int NOT NULL COMMENT '排序', | 12 | `sort` int NOT NULL COMMENT '排序', |
13 | `banner_type_id` bigint NOT NULL COMMENT '轮播图所属类型ID', | 13 | `banner_type_id` bigint NOT NULL COMMENT '轮播图所属类型ID', |
14 | `title` varchar(25) NOT NULL COMMENT '标题', | 14 | `title` varchar(25) NOT NULL COMMENT '标题', |
15 | - `pic_url` varchar(255) NOT NULL COMMENT '图片链接', | 15 | + `pic_url` varchar(255) NULL DEFAULT NULL COMMENT '图片链接', |
16 | `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)', | 16 | `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)', |
17 | `link` varchar(255) NULL DEFAULT NULL COMMENT '链接', | 17 | `link` varchar(255) NULL DEFAULT NULL COMMENT '链接', |
18 | `remark` varchar(255) NULL DEFAULT NULL COMMENT '备注', | 18 | `remark` varchar(255) NULL DEFAULT NULL COMMENT '备注', |
@@ -302,7 +302,6 @@ CREATE TABLE `dili_xtrade`.`banner_content` ( | @@ -302,7 +302,6 @@ CREATE TABLE `dili_xtrade`.`banner_content` ( | ||
302 | `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID', | 302 | `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID', |
303 | `content` text COMMENT '内容', | 303 | `content` text COMMENT '内容', |
304 | `pic_url` varchar(255) DEFAULT NULL COMMENT '图片链接', | 304 | `pic_url` varchar(255) DEFAULT NULL COMMENT '图片链接', |
305 | - `market_id` bigint NOT NULL COMMENT '市场ID', | ||
306 | PRIMARY KEY (`id`) USING BTREE, | 305 | PRIMARY KEY (`id`) USING BTREE, |
307 | - UNIQUE INDEX `unq_banner_id`(`banner_id`, `market_id`) USING BTREE | 306 | + UNIQUE INDEX `unq_banner_id`(`banner_id`) USING BTREE |
308 | ) ENGINE=InnoDB ROW_FORMAT=DYNAMIC COMMENT='内容管理-轮播图'; | 307 | ) ENGINE=InnoDB ROW_FORMAT=DYNAMIC COMMENT='内容管理-轮播图'; |
309 | \ No newline at end of file | 308 | \ No newline at end of file |
scripts/upgrade/v1.0.25/xtrade-order_v20240913.sql
1 | ALTER TABLE `dili_xtrade`.`banner` | 1 | ALTER TABLE `dili_xtrade`.`banner` |
2 | ADD COLUMN `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)' AFTER `pic_url`; | 2 | ADD COLUMN `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)' AFTER `pic_url`; |
3 | 3 | ||
4 | +ALTER TABLE `dili_xtrade`.`banner` MODIFY pic_url NULL DEFAULT NULL; | ||
5 | + | ||
4 | DROP TABLE IF EXISTS `dili_xtrade`.`banner_content`; | 6 | DROP TABLE IF EXISTS `dili_xtrade`.`banner_content`; |
5 | CREATE TABLE `dili_xtrade`.`banner_content` ( | 7 | CREATE TABLE `dili_xtrade`.`banner_content` ( |
6 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID', | 8 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID', |