refactor(tradein): normalize repair_state raw→enum at ingest (#621) #629

Merged
Light1YT merged 2 commits from refactor/621-normalize-repair-state into main 2026-05-28 15:18:12 +00:00
Showing only changes of commit f1d275af3a - Show all commits

View file

@ -10,6 +10,8 @@
-- Idempotent: CASE охватывает уже нормализованные значения (pass-through).
-- Issue: #621
BEGIN;
UPDATE listings
SET repair_state = CASE repair_state
-- ── уже нормализованные (pass-through) ───────────────────────────────────
@ -39,3 +41,5 @@ SET repair_state = CASE repair_state
ELSE NULL
END
WHERE repair_state IS NOT NULL;
COMMIT;