feat(performance): 직접 추가 쇼핑몰(수동 입력)·쇼핑몰 그룹·설정 드래그 순서
- 마이그레이션 009: perf_marketplaces.is_custom·is_group·parent_code - 설정: [+ 쇼핑몰 추가(수동 입력)]·[+ 그룹 추가], 이름 변경·삭제, 직접 추가 쇼핑몰 그룹 select - custom_ 코드는 registry.get_adapter 가 수동 입력 전용 어댑터(CustomManualAdapter)로 - 매출 실적 표: 그룹 열 = 보이는 하위 쇼핑몰 합계(일 합계엔 안 더함), ▾/▸ 하위 열 접기(localStorage) - 설정 표 ⠿ 드래그 → PUT /api/marketplace-order → sort_order, 화면 순서는 ordered_marketplaces 한 곳 - 테스트: test_custom_groups.py, perf_groups.browser.test.js Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -268,6 +268,21 @@ docker exec postgres-db psql -U postgres -d performance_db -c "\d perf_ad_spend"
|
||||
되돌리기(계산식 표시만 사라짐, 금액 그대로):
|
||||
`docker exec postgres-db psql -U postgres -d performance_db -c "ALTER TABLE perf_manual_sales DROP COLUMN formula; ALTER TABLE perf_ad_spend DROP COLUMN formula;"`
|
||||
|
||||
## 실적 직접 추가 쇼핑몰·그룹 마이그레이션 (performance_db 009)
|
||||
|
||||
009는 `perf_marketplaces` 에 `is_custom`·`is_group`·`parent_code` 열 세 개만 추가한다(기존 행·값 그대로, 기존 쇼핑몰은 모두 FALSE/NULL, 다시 실행 가능).
|
||||
002 다음에 적용한다. 미적용이어도 앱은 그대로 동작한다 — 설정의 [쇼핑몰 추가]·[그룹 추가]만 503 안내(드래그 순서는 기존 `sort_order` 라 009 없이도 됨).
|
||||
|
||||
```bash
|
||||
cd /opt/www/main
|
||||
docker exec postgres-db pg_dump -U postgres performance_db > ~/performance_db_before_009_$(date +%Y%m%d%H%M).sql
|
||||
docker exec -i postgres-db psql -v ON_ERROR_STOP=1 -U postgres -d performance_db < scripts/sql/performance_db_009_custom_marketplaces.sql
|
||||
docker exec postgres-db psql -U postgres -d performance_db -c "\d perf_marketplaces"
|
||||
```
|
||||
|
||||
되돌리기(직접 추가한 쇼핑몰·그룹을 화면에서 먼저 삭제한 뒤):
|
||||
`docker exec postgres-db psql -U postgres -d performance_db -c "ALTER TABLE perf_marketplaces DROP COLUMN parent_code, DROP COLUMN is_group, DROP COLUMN is_custom;"`
|
||||
|
||||
## 회의록 작업 등록 표 — 작업 칸 마이그레이션 (026)
|
||||
|
||||
026은 `goal_meeting_tasks.parent_task_id` 열만 추가한다(기존 값 그대로, 다시 실행 가능). 025 뒤에 적용한다. 미적용이면 작업 칸을 고를 때만 503 안내.
|
||||
|
||||
Reference in New Issue
Block a user