mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 06:46:25 +00:00
- ParticipantRepository에 날짜별 최대 순번 조회 메서드 추가 - ParticipationService의 순번 생성 로직을 날짜 기반으로 수정 - 이벤트별 database ID 대신 날짜별 전체 최대 순번 사용 - participant_id unique 제약조건 위반으로 인한 PART_001 에러 해결 - 다른 이벤트 간 participant_id 충돌 방지 🎯 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
377 B
SQL
15 lines
377 B
SQL
-- participation-service channel 컬럼 추가 스크립트
|
|
-- 실행 방법: psql -h 4.230.72.147 -U eventuser -d participationdb -f add-channel-column.sql
|
|
|
|
-- channel 컬럼 추가
|
|
ALTER TABLE participants
|
|
ADD COLUMN IF NOT EXISTS channel VARCHAR(20);
|
|
|
|
-- 기존 데이터에 기본값 설정
|
|
UPDATE participants
|
|
SET channel = 'SNS'
|
|
WHERE channel IS NULL;
|
|
|
|
-- 커밋
|
|
COMMIT;
|