-
Notifications
You must be signed in to change notification settings - Fork 4
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
flyway 문제 발생 해결 #440
flyway 문제 발생 해결 #440
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
alter table chat_room_report drop foreign key fk_chat_room_report_auction; | ||
alter table chat_room_report drop index fk_chat_room_report_auction; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 지금 로그에서 발생한 문제상황은 그래서 로그를 확인해보시면 그러므로 |
||
alter table chat_room_report add constraint fk_chat_room_report_chat_room foreign key (chat_room_id) references chat_room (id); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이건 어떠한 의도인지 잘 모르겠습니다 지금 문제는 현재 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 하지만 그러기 위해선 이미 DB에서 삭제하신 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 넵 맞습니다 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 답변 감사합니다. |
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.
제가 리뷰를 다는 사이에 스크립트가 추가되어 해당 부분에도 코멘트를 남기도록 하겠습니다
현재
alter table chat_room_report drop foreign key fk_chat_room_report_auction;
alter table chat_room_report drop index fk_chat_room_report_auction;
를 수행하고 있는 mysql 8.0에서는 외래 키 또한 인덱스로 설정합니다
그래서
show index from 테이블명
으로 확인하면 외래 키까지 같이 확인이 가능합니다그래서 결국 두 가지 명령어 모두 동일한 내용을 수행하고 있다고 보시면 될 것 같습니다
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.
흠... 그런데 해당 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.
해당 쿼리를 테스트한 환경이 어디인가요?
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.
개발 서버에서도 확인했었고, 마지막으로 운영 서버를 이전 버전으로 맞추면서 다시 한 번 확인했습니다.
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.
좋습니다 전 안되던데 왜 저렇게 되는지 모르겠군요 그럼 Approve로 변경하도록 하겠습니다