feat(malaysia): 콤보 세트 MY-0006(MALAYSIA Special Set) 등록

malaysia_items 시드에 MY-0006 추가, 운영 DB용 멱등 마이그레이션 추가.
BOM 구성은 itemcode_db.set_components 에서 실시간 조회 — 코드 변경 불필요.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 23:29:10 +09:00
parent aedb5f1fdb
commit ddb06e42db
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,14 @@
-- ════════════════════════════════════════════════════════════
-- 마이그레이션: 콤보 세트 MY-0006 (MALAYSIA Special Set) 등록
-- malaysia_items 에 신규 세트 1종을 추가한다(kind='set').
-- 세트 BOM 구성은 itemcode_db.set_components 에서 읽으므로 여기서
-- 다루지 않는다(기존 콤보 구성 변경도 itemcode_db 에 이미 반영됨).
-- 기존 운영 malaysia_stock_db 에 적용(신규 설치는 init 에 이미 포함).
-- superuser/owner 로 실행. 멱등.
-- ════════════════════════════════════════════════════════════
INSERT INTO malaysia_items (item_code, item_name, kind, sort_order) VALUES
('MY-0006', 'MALAYSIA Special Set', 'set', 26)
ON CONFLICT (item_code) DO UPDATE
SET item_name = EXCLUDED.item_name,
kind = EXCLUDED.kind,
active = TRUE;
+2 -1
View File
@@ -297,7 +297,8 @@ INSERT INTO malaysia_items (item_code, item_name, kind, sort_order) VALUES
('MY-0003', 'Essential Set', 'set', 23),
('MY-0004', 'Premium Set', 'set', 24),
('MY-0005', 'Ultimate Set', 'set', 25),
('MY-9991', 'Combo 2.5L+6L', 'set', 26)
('MY-0006', 'MALAYSIA Special Set', 'set', 26),
('MY-9991', 'Combo 2.5L+6L', 'set', 27)
ON CONFLICT (item_code) DO NOTHING;
-- ════════════════════════════════════════════════════════════