Skip to content

Conversation

@LeeJaeYun7
Copy link
Collaborator

  • flyway 설정을 추가했습니다

Copy link
Collaborator

@f-lab-moony f-lab-moony left a 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;
Copy link
Collaborator

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 는 그 전까지 수행된건 제외 하고 그 뒤로 수행돼요 ~

Copy link
Collaborator Author

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
Copy link
Collaborator

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요런 느낌으로요!

Copy link
Collaborator Author

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),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

password는 null이어도 되는걸까요 ? 아래 다른 컬럼들도요!

Copy link
Collaborator Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

인덱스 이름을 좀 더 자세하게 적는 건 어떨까요 ?
특별한 컨벤션이 있는건 아니지만, IDX_MEMBER_EMAIL 처럼 테이블과 포함 컬럼이 드러나면 좋을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정했습니다

@f-lab-moony f-lab-moony merged commit 705169b into main Aug 4, 2023
f-lab-moony added a commit that referenced this pull request Aug 4, 2023
#9 Member 패키지 리팩터링 및 테스트 작성
@LeeJaeYun7 LeeJaeYun7 deleted the feat/spring-flyway branch August 15, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants