mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 14:56:23 +00:00
1.4 KiB
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 파일 실행
- IntelliJ Database 탭 열기
meetingdb우클릭 → New → Query Consolecleanup-minutes-sections.sql파일 내용 복사 & 실행
2단계: Meeting 서비스 재시작
IntelliJ Run Configuration에서 Meeting 서비스 재시작
📝 수정된 파일
-
test-data-minutes-sections.sql
- Entity 구조에 맞게 컬럼명 수정
id컬럼 추가 (필수)type,title,order등 추가section_number,section_title제거
-
cleanup-minutes-sections.sql
- null id 레코드 삭제 스크립트
-
README-FIX-MINUTES-SECTIONS.md
- 상세 문제 해결 가이드
🔍 확인 사항
서비스 시작 후 로그 확인:
tail -f logs/meeting-service.log
에러가 없으면 성공! 다음 단계로 진행하세요.
📚 참고
- Entity:
MinutesSectionEntity.java - Repository:
MinutesSectionRepository.java(필요시 생성) - Service:
EndMeetingService.java