hgzero/meeting/QUICK-FIX-GUIDE.md

1.4 KiB

Minutes Sections 테이블 에러 빠른 해결 가이드

🚨 발생한 에러

Caused by: org.postgresql.util.PSQLException:
ERROR: column "id" of relation "minutes_sections" contains null values

해결 방법 (2단계)

1단계: 데이터베이스 정리

IntelliJ에서 다음 중 하나를 실행:

방법 A: 직접 SQL 실행

DELETE FROM minutes_sections WHERE id IS NULL;

방법 B: cleanup-minutes-sections.sql 파일 실행

  1. IntelliJ Database 탭 열기
  2. meetingdb 우클릭 → New → Query Console
  3. cleanup-minutes-sections.sql 파일 내용 복사 & 실행

2단계: Meeting 서비스 재시작

IntelliJ Run Configuration에서 Meeting 서비스 재시작

📝 수정된 파일

  1. test-data-minutes-sections.sql

    • Entity 구조에 맞게 컬럼명 수정
    • id 컬럼 추가 (필수)
    • type, title, order 등 추가
    • section_number, section_title 제거
  2. cleanup-minutes-sections.sql

    • null id 레코드 삭제 스크립트
  3. README-FIX-MINUTES-SECTIONS.md

    • 상세 문제 해결 가이드

🔍 확인 사항

서비스 시작 후 로그 확인:

tail -f logs/meeting-service.log

에러가 없으면 성공! 다음 단계로 진행하세요.

📚 참고

  • Entity: MinutesSectionEntity.java
  • Repository: MinutesSectionRepository.java (필요시 생성)
  • Service: EndMeetingService.java