문제: - cleanup 스크립트가 P0003 이후 삭제 시 P001, P002도 함께 삭제됨 - 문자열 비교 'P001' >= 'P0003'이 true로 평가됨 원인: - SQLite 문자열 비교에서 'P001' < 'P0003'이지만 - 'P002' >= 'P0003'은 false인데, 기존 조건이 잘못됨 해결: - LENGTH(pharmacy_code) = 5 조건 추가 - P0003 <= pharmacy_code <= P9999 범위 명시 - P001, P002 (4자), P0001, P0002 (5자) 모두 보호 변경 파일: - cleanup-test-data.sh: 삭제 쿼리 수정 - CLEANUP_TEST_DATA.md: 문서 업데이트 보호되는 약국: - P001: default 약국 (4자) - P002: 새서울약국 (4자) - P0002: 청춘약국 (5자, 범위 밖) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
7.7 KiB
Executable File
7.7 KiB
Executable File