Skip to content

Commit 09048fd

Browse files
committed
feat: MentorApplication에 termId 추가 flyway 스크립트 추가
1 parent e2ee4e6 commit 09048fd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class MentorApplication extends BaseEntity {
5353
@Column(nullable = false, name = "mentor_proof_url", length = 500)
5454
private String mentorProofUrl;
5555

56-
@Column(length = 50, nullable = false)
56+
@Column(nullable = false, name = "term_id")
5757
private long termId;
5858

5959
private String rejectedReason;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALTER TABLE mentor_application
2+
ADD COLUMN term_id BIGINT NOT NULL;
3+
4+
ALTER TABLE mentor_application
5+
ADD CONSTRAINT fk_mentor_application_term_id
6+
FOREIGN KEY (term_id) REFERENCES term(id);

0 commit comments

Comments
 (0)