|
@@ -3707,6 +3707,9 @@ try {
|
|
|
log.warn("为health_reports表添加字段可能已存在: {}", e.getMessage());
|
|
log.warn("为health_reports表添加字段可能已存在: {}", e.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ ensureColumn("health_reports", "subject_id", "BIGINT COMMENT '报告主体用户ID(关联users表,为null表示未绑定)'");
|
|
|
|
|
+
|
|
|
// ---------- 健康指标表 新增symptoms字段 ----------
|
|
// ---------- 健康指标表 新增symptoms字段 ----------
|
|
|
try {
|
|
try {
|
|
|
jdbcTemplate.execute("ALTER TABLE health_indicators ADD COLUMN symptoms TEXT COMMENT '过量/缺乏相关症状描述'");
|
|
jdbcTemplate.execute("ALTER TABLE health_indicators ADD COLUMN symptoms TEXT COMMENT '过量/缺乏相关症状描述'");
|