Files
photo-live/packages/db-ov/prisma/migrations/20260920090513_watermark_replica_columns/migration.sql
T
2026-09-20 17:53:44 +08:00

9 lines
625 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.
-- P4a Task 3:albums_ov 水印副本位(album.updated 载荷投影,语义见
-- packages/contracts/src/watermark.ts)——watermarkEnabled=true 时 ov 公开侧
-- 浏览键切换为模式键 `variants/{photoId}/{watermarkConfigVersion}/watermark.jpg`
-- (确定性推导,无逐照片同步;对象存在性由 cn 侧「有效版本」保证)。
-- 两列均非 VARCHAR,无校对手决关注(沿用库级 utf8mb4_0900_bin 表默认)。
-- AlterTable
ALTER TABLE `albums_ov` ADD COLUMN `watermarkConfigVersion` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `watermarkEnabled` BOOLEAN NOT NULL DEFAULT false;