mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-07-20 19:46:14 +00:00
refactor(model): 将 Post和Draft 实体的内容字段类型从 TEXT 改为 LONGTEXT
This commit is contained in:
@@ -22,7 +22,7 @@ public class Draft {
|
|||||||
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@Column(columnDefinition = "TEXT")
|
@Column(columnDefinition = "LONGTEXT")
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class Post {
|
|||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@Column(nullable = false, columnDefinition = "TEXT")
|
@Column(nullable = false, columnDefinition = "LONGTEXT")
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
@CreationTimestamp
|
@CreationTimestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user