-
Notifications
You must be signed in to change notification settings - Fork 0
#8 flyway 설정 추가 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LeeJaeYun7
commented
Jul 25, 2023
- flyway 설정을 추가했습니다
f-lab-moony
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생많으셨어요 ~
코멘트 몇개 남겨 뒀는데, 다음 작업때 확인 부탁드려요 요건 머지 하도록 하겠습니다 ~
| @@ -0,0 +1,15 @@ | |||
| -- V1__init.sql | |||
| drop table if exists member; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop은 굳이 안해줘도 될거같아요 ~
어차피 이 수행된 sql을 다시 수행 하려면 flyway reset 을 실행해야되는데, 그때는 초기화 된 뒤에 다시 처음부터 수행이 되거든요
flyway migrate 는 그 전까지 수행된건 제외 하고 그 뒤로 수행돼요 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 확인했습니다
| @@ -0,0 +1,15 @@ | |||
| -- V1__init.sql | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flyway는 보통 날짜 시간을 파일명에 포함시켜요 ~
V2023.07.23.22.32.54__init_schema.sql요런 느낌으로요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 넵 확인했습니다.
| CREATE TABLE member ( | ||
| MEMBER_ID BIGINT AUTO_INCREMENT PRIMARY KEY, | ||
| email VARCHAR(255) NOT NULL, | ||
| password VARCHAR(255), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
password는 null이어도 되는걸까요 ? 아래 다른 컬럼들도요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다
| role VARCHAR(50) NOT NULL | ||
| ); | ||
|
|
||
| CREATE INDEX i_member ON member (email); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
인덱스 이름을 좀 더 자세하게 적는 건 어떨까요 ?
특별한 컨벤션이 있는건 아니지만, IDX_MEMBER_EMAIL 처럼 테이블과 포함 컬럼이 드러나면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다
#9 Member 패키지 리팩터링 및 테스트 작성