mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-13 23:50:47 +08:00
chore: alter notifications type column
This commit is contained in:
@@ -22,7 +22,7 @@ public class Notification {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
@Column(nullable = false)
|
@Column(nullable = false, length = 50)
|
||||||
private NotificationType type;
|
private NotificationType type;
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
@ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE notifications
|
||||||
|
MODIFY COLUMN type VARCHAR(50) NOT NULL;
|
||||||
Reference in New Issue
Block a user