数据存储优化

This commit is contained in:
2025-12-30 17:19:08 +08:00
parent f06fd5c883
commit cd7567cc16
9 changed files with 159 additions and 84 deletions

View File

@@ -0,0 +1,3 @@
ALTER TABLE file_storage
MODIFY COLUMN createYearMonth VARCHAR(7)
GENERATED ALWAYS AS (DATE_FORMAT(createTime, '%Y-%m')) STORED;