chore: alter notifications type column

This commit is contained in:
Tim
2025-08-14 15:15:58 +08:00
parent 53c603f33a
commit a5ec0348a9
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;