Files
zt-dsc/sql/mysql/patch.sql
2025-07-22 19:36:46 +08:00

6 lines
442 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.
-- 1. 附件信息表新增上传文件 Hash 字段,如果上传文件 hash 重复直接复用不进行重复上传
ALTER TABLE infra_file ADD COLUMN hash VARCHAR(64) COMMENT '文件哈希值SHA-256';
CREATE INDEX idx_infra_file_hash ON infra_file(hash);
-- 2. 附件信息表新增 AES 加密时存储的随机 IV 字段
ALTER TABLE infra_file ADD COLUMN aes_iv VARCHAR(128) NULL COMMENT 'AES加密时的随机IVBase64编码';