-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: StudentCode unique 제약조건 추가 * refactor: 불필요한 setUp 메서드 제거 * feat: StudnetCode 발행 일자 필드 추가 및 재발행 가능 여부 확인 기능 구현 * feat: 인증번호 재전송 가능 확인 기능 구현 * fix: duplicated key exception으로 insert가 안되는 버그 수정 * refactor: 기존 테스트와 새로운 테스트 병합 * feat: SetUpMockito 클래스 생성 및 적용 * refactor: studentCode unique 제약조건 수정 * refactor: StudentCode에서 BaseTimeEntity 상속받지 않도록 수정 * refactor: username 파라미터로 전달 * refactor: studentCode issued_at not null 제약조건 추가 * refactor: 학생 인증 코드 재발급 로직 update를 활용하도록 수정 * refactor: 429 Too Many Request 적용 * refactor: flyway version 수정 * refactor: StudentCode BaseTimeEntity 상속받지 않도록 수정 * refactor: student_code UNIQUE 제약조건 추가 flyway script 수정
- Loading branch information
Showing
12 changed files
with
371 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
backend/src/main/java/com/festago/common/exception/TooManyRequestException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.festago.common.exception; | ||
|
||
public class TooManyRequestException extends FestaGoException { | ||
|
||
public TooManyRequestException(ErrorCode errorCode) { | ||
super(errorCode); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
backend/src/main/resources/db/migration/V7__studnet_code__unique.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- issued_at 칼럼 추가 (NOT NULL) | ||
alter table student_code | ||
add column issued_at datetime(6) not null | ||
default '1999-12-31 00:00:00'; | ||
|
||
alter table student_code | ||
alter column issued_at drop default; | ||
|
||
-- 기존 created_at updated_at 삭제 | ||
alter table student_code | ||
drop column created_at; | ||
|
||
alter table student_code | ||
drop column updated_at; | ||
|
||
-- StudentCode의 member_id UNIQUE 제약조건 추가 | ||
alter table student_code | ||
modify column member_id bigint unique; | ||
정 |
Oops, something went wrong.