feat: 同步本地三端改动并清理上传凭证风险
整合小程序、管理端与后端的最新本地改动,补齐用户管理与首页入口相关能力;提交前已完成敏感信息扫描,并移除本地 gitea 远程 URL 中的明文凭证,避免隐私信息进入远程仓库。 Made-with: Cursor
This commit is contained in:
@@ -232,6 +232,11 @@ func ensurePersonSchema(db *gorm.DB) {
|
||||
log.Printf("database: persons schema ensure warning: %v; action=create idx_persons_is_pinned", err)
|
||||
}
|
||||
}
|
||||
if !m.HasColumn(&model.Person{}, "home_entry_config") {
|
||||
if err := db.Exec("ALTER TABLE persons ADD COLUMN home_entry_config TEXT NULL COMMENT '首页入口配置(打赏/上麦,JSON)'").Error; err != nil {
|
||||
log.Printf("database: persons schema ensure warning: %v; action=add home_entry_config", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ensureCkbLeadSchema(db *gorm.DB) {
|
||||
|
||||
Reference in New Issue
Block a user