Compare commits

...

1 Commits

Author SHA1 Message Date
Tim
a5ec0348a9 chore: alter notifications type column 2025-08-14 15:15:58 +08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ public class Notification {
private Long id;
@Enumerated(EnumType.STRING)
@Column(nullable = false)
@Column(nullable = false, length = 50)
private NotificationType type;
@ManyToOne(fetch = FetchType.LAZY, optional = false)

View File

@@ -0,0 +1,2 @@
ALTER TABLE notifications
MODIFY COLUMN type VARCHAR(50) NOT NULL;