Analytics Service DDL_AUTO를 create로 변경하여 스키마 재생성

문제 해결:
- storeId → userId 필드명 변경으로 인한 스키마 불일치
- PostgreSQL ERROR: column "user_id" of relation "event_stats" contains null values
- update 모드는 컬럼명 변경(rename)을 자동 처리하지 못함

변경사항:
- DDL_AUTO: update → create
- 서비스 시작 시 테이블을 DROP 후 재생성
- MVP 환경: SampleDataLoader가 샘플 데이터 자동 생성

주의사항:
- create 모드는 매번 테이블을 재생성함 (데이터 손실)
- MVP 환경에서만 사용, 실제 운영 시 update/validate로 변경 필요

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Hyowon Yang 2025-10-28 15:31:51 +09:00
parent ea4aa5d072
commit 02fd82e0af

View File

@ -12,7 +12,7 @@
<entry key="DB_PASSWORD" value="Hi5Jessica!" /> <entry key="DB_PASSWORD" value="Hi5Jessica!" />
<!-- JPA Configuration --> <!-- JPA Configuration -->
<entry key="DDL_AUTO" value="update" /> <entry key="DDL_AUTO" value="create" />
<entry key="SHOW_SQL" value="true" /> <entry key="SHOW_SQL" value="true" />
<!-- Redis Configuration --> <!-- Redis Configuration -->