docs: 내화실 품목 업데이트 배포 SQL 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 03:05:02 +09:00
parent c2c5765e31
commit 25cdd12405

View File

@@ -41,6 +41,33 @@ SELECT id, code, name, unit, attributes, options
FROM items
WHERE tenant_id = @TARGET_TENANT_ID AND code = '내화실-WY-MA12';
-- ============================================================
-- 슬랫 조인트바 options 업데이트 (잔재 활용 생산품)
-- ============================================================
-- 변경 전 확인
SELECT id, code, name, options
FROM items
WHERE tenant_id = @TARGET_TENANT_ID AND code = 'EST-RAW-슬랫-조인트바';
-- 업데이트
UPDATE items
SET
options = JSON_OBJECT(
'lot_managed', TRUE,
'consumption_method', 'auto',
'production_source', 'self_produced',
'input_tracking', FALSE
),
updated_at = NOW()
WHERE tenant_id = @TARGET_TENANT_ID
AND code = 'EST-RAW-슬랫-조인트바';
-- 변경 후 확인
SELECT id, code, name, options
FROM items
WHERE tenant_id = @TARGET_TENANT_ID AND code = 'EST-RAW-슬랫-조인트바';
-- 확인 후 COMMIT 또는 ROLLBACK
-- COMMIT;
-- ROLLBACK;