innercircle-byebye / ft_transcendence-back

Backend for ft_transcendence (nestjs)
1 stars 0 forks source link

AdminJs ChannelMember 칼럼 접속 문제 해결 #143

Closed sungyongcho closed 2 years ago

sungyongcho commented 2 years ago

AdminJs에서 BaseEntity를 기준으로 Primary Key를 바탕으로 값에 접근하는데,

ChannelMember 칼럼 접속 시 동시에 여러개의 PrimaryKey가 설정 되어 개별 데이터 칼럼에 접근, 수정하지 못하는 문제가 있었습니다.

이를 해결 하기위해 channelmember 테이블에 PrimaryKey로 설정 되어 있던 두 key 값 userId, channelId 를 일반 칼럼으로 설정하고, 'channelMemberID` 라는 고유 ID 키값을 생성하였습니다.

기존 쿼리들이 channel_member_id를 활용 하고 있지 않아서 데이터 수정에서 발생하는 문제는 없었습니다.

이외 더미데이터 로그인정보를 업데이트 하였습니다