迁移:将DB变更记录SQL文件移动到sql目录下

This commit is contained in:
2026-01-13 10:05:32 +08:00
parent cb268fe26d
commit ebd2e8aa75
131 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- 添加公告/通知优先级字段
ALTER TABLE sys_notice ADD COLUMN priority VARCHAR(1) DEFAULT '3';
-- 添加字段注释
COMMENT ON COLUMN sys_notice.priority IS '优先级1高 2中 3低';
-- 更新现有数据的优先级为中等
UPDATE sys_notice SET priority = '2' WHERE priority IS NULL;