Skip to content

Commit 1203d00

Browse files
authored
refactor: 멘토의 합격 팁, 자기 소개가 null 을 허용하지 않도록 (#443)
* chore: not null alter 스크립트 추가 * refactor: 엔티티에 nullable=false 추가 * chore: flyway 버전업
1 parent f78a01f commit 1203d00

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/java/com/example/solidconnection/mentor/domain/Mentor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public class Mentor {
3232
@Column
3333
private boolean hasBadge = false;
3434

35-
@Column(length = 1000)
35+
@Column(length = 1000, nullable = false)
3636
private String introduction;
3737

38-
@Column(length = 1000)
38+
@Column(length = 1000, nullable = false)
3939
private String passTip;
4040

4141
@Column
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE mentor
2+
MODIFY introduction VARCHAR(1000) NOT NULL;
3+
4+
ALTER TABLE mentor
5+
MODIFY pass_tip VARCHAR(1000) NOT NULL;

0 commit comments

Comments
 (0)