-- 添加公告/通知发布状态字段
ALTER TABLE sys_notice ADD COLUMN publish_status VARCHAR(1) DEFAULT '0';

-- 添加字段注释
COMMENT ON COLUMN sys_notice.publish_status IS '发布状态（0未发布 1已发布）';

-- 更新现有数据为已发布状态
UPDATE sys_notice SET publish_status = '1' WHERE publish_status IS NULL;
