dy-dashboard/vault/知识库/工作指南/训练记录/2026-07-23-生产环境强制修改密码数据库结构更新.md
2026-10-28 11:14:17 +08:00

12 lines
943 B
Markdown
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. 生产环境强制修改密码数据库结构更新
**旭东 → OpenClaw:**
> 我现在想要把这个相关功能更新到生产环境中,也更新一下数据库结构字段,但是不要替换其他的数据
**OpenClaw 响应:**
已将用户登录后强制修改密码功能完整启用到 192.168.11.79 生产环境。操作前单独备份 dashboard_users 用户表并完成 SHA256 校验;仅为该表新增 must_change_password 字段,并将现有 26 个启用账号设置为下次登录必须修改密码,没有替换表或修改其他业务数据。用户数量以及用户名、密码哈希、状态、最后登录时间等核心字段在操作前后校验值一致。生产服务已重启,状态 active,登录页 HTTP 200,4 个 Gunicorn Worker 正常,启动日志无异常。此次仅按要求更新生产环境,未同步云端。
**已记录**