-- ========================================================
-- V14: 强制回填 t_ugc_work.original_image_url
-- ========================================================
-- 背景：
--   V13 因 Flyway schema_history 表残留同版本号脏数据被 repair 跳过，
--   实际 SQL 没真正执行。新建 V14 强制重跑同样的 UPDATE 逻辑。
--
-- 详见 docs/design/public/ugc-work-status-redesign.md
-- 详见 V13__backfill_original_image_url.sql
-- ========================================================

UPDATE t_ugc_work
SET original_image_url = cover_url
WHERE original_image_url IS NULL
  AND cover_url IS NOT NULL;
