This commit is contained in:
toom1996
2026-09-29 19:59:30 +08:00
parent d15d2a4701
commit 361ffc01af
28 changed files with 896 additions and 47 deletions

View File

@ -0,0 +1,8 @@
-- 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;