|
|
@@ -8107,14 +8107,14 @@ private void runMigration100() {
|
|
|
log.info("已创建diet_record_items表");
|
|
|
} catch (Exception e) {
|
|
|
log.warn("创建 diet_record_items 表失败(可能已存在): " + e.getMessage());
|
|
|
+ }
|
|
|
|
|
|
- // 迁移178: health_reports 添加代上传字段(规划师/营养师代用户提交报告)
|
|
|
+ // 迁移180: health_reports 添加代上传字段(规划师/营养师代用户提交报告,修复 Unknown column 'proxy_uploader_id' 错误)
|
|
|
ensureColumn("health_reports", "proxy_uploader_id", "BIGINT COMMENT '代上传人ID(规划师/营养师)'");
|
|
|
ensureColumn("health_reports", "proxy_upload_note", "TEXT COMMENT '代上传备注'");
|
|
|
ensureColumn("health_reports", "ai_analysis", "TEXT COMMENT 'AI解读结果JSON'");
|
|
|
|
|
|
- // 迁移180: health_report_drafts 添加备注字段(代上传说明文字)
|
|
|
+ // 迁移181: health_report_drafts 添加备注字段(代上传说明文字)
|
|
|
ensureColumn("health_report_drafts", "remark", "VARCHAR(500) DEFAULT NULL COMMENT '备注(如代上传时的说明文字)'");
|
|
|
- }
|
|
|
}
|
|
|
}
|