Files
backend_v2/db/migrations/2026-09-29-01-image-original-size.sql
toom1996 361ffc01af update
2026-09-29 19:59:30 +08:00

9 lines
512 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 2026-09-29 原图大小:worker 下载图片时记录源文件字节数(image_size),
-- 供后台「图集原图总大小」展示。历史已入库图片为 0(未重爬、无源数据),重爬后自动补齐。
--
-- 应用方式(连库执行):
-- psql "$DATABASE_URL" -f db/migrations/2026-09-29-01-image-original-size.sql
ALTER TABLE brand_runway_images ADD COLUMN image_size bigint NOT NULL DEFAULT 0;
ALTER TABLE street_snap_images ADD COLUMN image_size bigint NOT NULL DEFAULT 0;