From 85f8b11248651cbacbc2fbe2077d681433d294f8 Mon Sep 17 00:00:00 2001 From: yebin Date: Sun, 27 Jul 2025 08:33:53 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20UserClub=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EC=97=90=20score=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UserClub 엔티티 score 필드 추가로 인한 오류 해결 --- .../resources/sql/comment-repository-test-data.sql | 12 ++++++------ .../sql/schedule-vote-repository-test-data.sql | 12 ++++++------ .../resources/sql/user-club-repository-test-data.sql | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/test/resources/sql/comment-repository-test-data.sql b/src/test/resources/sql/comment-repository-test-data.sql index 658ba76..a6d262b 100644 --- a/src/test/resources/sql/comment-repository-test-data.sql +++ b/src/test/resources/sql/comment-repository-test-data.sql @@ -17,13 +17,13 @@ VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN' INSERT INTO users (user_id, created_date, updated_date, activity_area, birthday, email, fcm_token, gender, height, img_url, original_img_name, stored_img_name, main_foot, main_position, name, password, phone, refresh_token, role, sub_position, weight) VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN', 180, null, null, null, 'BOTH', 'MANAGER', 'name', 'password', 'phone', 'refresh_token12345678910', 'USER', 'GK', 70); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1, 0); ---- 3번 동아리에 가입한 유저들 -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3, 0); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4, 0); -- 스케줄 생성 insert into `schedule` (id, club_id, title, location, start_time, end_time, min_people, category, note, attend, non_attend, is_close, view_count) values (1, 3, '운동 매치 스케줄', '서울시 마포구', '2024-03-11 14:30:00', '2024-03-11 17:30:00', 10, 'REGULAR_TRAINING', 'note', 10, 12, 0, 5); diff --git a/src/test/resources/sql/schedule-vote-repository-test-data.sql b/src/test/resources/sql/schedule-vote-repository-test-data.sql index 11b7a54..63da139 100644 --- a/src/test/resources/sql/schedule-vote-repository-test-data.sql +++ b/src/test/resources/sql/schedule-vote-repository-test-data.sql @@ -14,13 +14,13 @@ VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN' INSERT INTO users (user_id, created_date, updated_date, activity_area, birthday, email, fcm_token, gender, height, img_url, original_img_name, stored_img_name, main_foot, main_position, name, password, phone, refresh_token, role, sub_position, weight) VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN', 180, null, null, null, 'BOTH', 'MANAGER', 'name', 'password', 'phone', 'refresh_token12345678910', 'USER', 'GK', 70); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1, 0); ---- 3번 동아리에 가입한 유저들 -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3, 0); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4, 0); -- 스케줄 생성 insert into `schedule` (id, club_id, title, location, start_time, end_time, min_people, category, note, attend, non_attend, is_close, view_count) values (1, 3, '운동 매치 스케줄', '서울시 마포구', '2024-03-11 14:30:00', '2024-03-11 17:30:00', 10, 'REGULAR_TRAINING', 'note', 10, 12, 0, 5); diff --git a/src/test/resources/sql/user-club-repository-test-data.sql b/src/test/resources/sql/user-club-repository-test-data.sql index 2413962..0b7d871 100644 --- a/src/test/resources/sql/user-club-repository-test-data.sql +++ b/src/test/resources/sql/user-club-repository-test-data.sql @@ -17,10 +17,10 @@ VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN' INSERT INTO users (user_id, created_date, updated_date, activity_area, birthday, email, fcm_token, gender, height, img_url, original_img_name, stored_img_name, main_foot, main_position, name, password, phone, refresh_token, role, sub_position, weight) VALUES (default, null, null, 'GYEONGGI', 'birthday', 'email', 'fcm_token', 'MAN', 180, null, null, null, 'BOTH', 'MANAGER', 'name', 'password', 'phone', 'refresh_token12345678910', 'USER', 'GK', 70); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 1, 1, 0); ---- 3번 동아리에 가입한 유저들 -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3); -INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id) -VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4); \ No newline at end of file +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 3, 0); +INSERT INTO user_club (id, created_date, updated_date, club_role, join_date, match_count, schedule_count, club_id, user_id, score) +VALUES (default, null, null, 'STAFF', '2024-12-11', 2, 2, 3, 4, 0); \ No newline at end of file