Repository navigation
chore: data.sql에서 DEMO-* 지원제도 시드 제거 - #145
Merged
Merged
Conversation
운영에 WELFARE_API_KEY가 없어 수집이 안 돌던 동안 시연용으로 넣었던 DEMO-0001~6. 이제 수집 배치가 최초 기동 시(#143) + 매월 1일 돌아 실데이터가 채워지므로, 이 시드는 실제 제도와 의미상 중복만 만든다 (예: DEMO-0001 자립수당 ↔ 수집된 WLF00001175 자립준비청년 자립수당 지급).⚠️ 이 파일은 INSERT만 하므로, 이미 RDS/로컬 DB에 들어간 DEMO-* 6행은 별도로 지워야 한다: DELETE FROM user_program_eligibility WHERE program_id LIKE 'DEMO-%'; DELETE FROM user_program_status WHERE program_id LIKE 'DEMO-%'; DELETE FROM welfare_program WHERE serv_id LIKE 'DEMO-%'; Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 내용
data.sql의welfare_programDEMO 시드 블록(180–266줄,DEMO-0001~DEMO-0006) 제거.운영에
WELFARE_API_KEY가 없어 수집 배치가 안 돌던 동안 지원금 화면이 비지 않게 넣었던 시연용 데이터다. 이제:.env에 키 반영) + feat: 복지서비스 수집을 최초 기동 시 1회 실행 #143 (최초 기동 시 1회 수집) 로 실데이터가 채워짐DEMO-0001 자립수당↔ 수집된WLF00001175 자립준비청년 자립수당 지급DEMO-0003 청년월세 특별지원↔ 수집된 청년월세 행data.sql주석에도 예고돼 있던 작업: "수집이 정상화되면 이 블록을 지운다"serv_id 충돌은 없음 (
DEMO-접두사 vsWLF*).data.sql은INSERT ... ON DUPLICATE KEY UPDATE만 하고 DELETE는 안 한다. 이미 RDS·로컬 DB에 들어간DEMO-*6행은 머지 + 배포 후 SSH로 한 번 지워야 한다:순서: 이 PR 머지 → 배포 완료 → SSH로 DELETE. RDS를 먼저 지우고 재기동하면 (이 PR 머지 전이면)
data.sql이 도로 넣는다.확인한 것
./gradlew build통과DdayApplicationTests(기동 시 data.sql 실행) 통과 — SQL 유효🤖 Generated with Claude Code