fix:修复name过长无法导入问题
This commit is contained in:
parent
5126e31867
commit
c9156f12d1
README.md
bookMarkService
common/src/main/java/com/fanxb/bookmark/common/entity/po
web/src/main/resources/db/migration
12
README.md
12
README.md
@ -31,7 +31,16 @@
|
|||||||
|
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
## 2023-08-13
|
## 1.4.1
|
||||||
|
|
||||||
|
- 修复书签名过长无法导入问题
|
||||||
|
|
||||||
|
## 1.4
|
||||||
|
|
||||||
|
- 优化首图加载逻辑
|
||||||
|
- 支持 OneEnv 备份文件导入
|
||||||
|
|
||||||
|
## 1.3
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -39,7 +48,6 @@
|
|||||||
|
|
||||||
位置:右上角个人中心-管理搜索引擎
|
位置:右上角个人中心-管理搜索引擎
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- [x] 主页功能
|
- [x] 主页功能
|
||||||
|
@ -53,7 +53,7 @@ public class Bookmark {
|
|||||||
this.setUserId(userId);
|
this.setUserId(userId);
|
||||||
this.setPath(path);
|
this.setPath(path);
|
||||||
this.setType(FOLDER_TYPE);
|
this.setType(FOLDER_TYPE);
|
||||||
this.setName(name);
|
this.setName(name.length() > 2000 ? name.substring(0, 1999) : name);
|
||||||
this.setAddTime(addTime);
|
this.setAddTime(addTime);
|
||||||
this.setSort(sort);
|
this.setSort(sort);
|
||||||
this.setCreateTime(System.currentTimeMillis());
|
this.setCreateTime(System.currentTimeMillis());
|
||||||
@ -64,7 +64,7 @@ public class Bookmark {
|
|||||||
this.setUserId(userId);
|
this.setUserId(userId);
|
||||||
this.setPath(path);
|
this.setPath(path);
|
||||||
this.setType(BOOKMARK_TYPE);
|
this.setType(BOOKMARK_TYPE);
|
||||||
this.setName(name);
|
this.setName(name.length() > 2000 ? name.substring(0, 1999) : name);
|
||||||
this.setUrl(url);
|
this.setUrl(url);
|
||||||
this.setIcon(icon);
|
this.setIcon(icon);
|
||||||
this.setSort(sort);
|
this.setSort(sort);
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
alter table bookmark
|
||||||
|
modify name varchar(2000) not null;
|
Loading…
x
Reference in New Issue
Block a user