|
@@ -10345,5 +10345,17 @@ public class DatabaseInitializer implements CommandLineRunner {
|
|
|
// 迁移294: articles 表加 sort_order 列(精选文章推荐排序,越小越靠前)
|
|
// 迁移294: articles 表加 sort_order 列(精选文章推荐排序,越小越靠前)
|
|
|
ensureColumn("articles", "sort_order", "INT NOT NULL DEFAULT 0 COMMENT '推荐排序值(越小越靠前)'");
|
|
ensureColumn("articles", "sort_order", "INT NOT NULL DEFAULT 0 COMMENT '推荐排序值(越小越靠前)'");
|
|
|
log.info("已添加 articles.sort_order 列(迁移294)");
|
|
log.info("已添加 articles.sort_order 列(迁移294)");
|
|
|
|
|
+
|
|
|
|
|
+ // ===== 生产库对账候选风险记录(已核对生产库,2026-09,按用户决定不迁移/暂不动,仅记录)=====
|
|
|
|
|
+ // 注:以下为 entity 期望但生产库未对齐.项目,用户已决定保持现状或记为候选,勿重复迁移。
|
|
|
|
|
+ // 1. children 表缺 phone、id_card(Child 实体+ChildMapper 仍活跃,AccountCleanupService
|
|
|
|
|
+ // exportUserData 全字段 SELECT 会报 Unknown column 'phone')。schema.sql 已将 children 标为
|
|
|
|
|
+ // 已废除/并入 family_members,用户决定不迁移。
|
|
|
|
|
+ // 2. user_trigger_rules:生产表仅剩 user_id(PK,auto_increment)/action_config/last_triggered_at,
|
|
|
|
|
+ // 实体期望 id/trigger_type/trigger_action/status/created_at 共 8 列,表 0 行且不在 schema.sql。
|
|
|
|
|
+ // UserSegmentationService.getTriggerRules 会查 status,命中时会报 Unknown column 'status'。候选。
|
|
|
|
|
+ // 3. promotion_tier.rate_percent:生产用旧模型(tier/team_size_1st/2nd/3rd/total_*),实体期望新模型,
|
|
|
|
|
+ // 表 0 行。PromotionTier 服务广泛使用。候选。
|
|
|
|
|
+ // 4. promotion_tier_config:实体已废弃,改用 cf_rate_tier(迁移279),保持现状。
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|