fix(server+health): 修复权限同步 + 迁移幂等性 + 缺失菜单种子数据
- sync_module_permissions 每次启动都确保 admin 拥有所有权限(修复 CRITICAL-001) - 新增迁移 m20260505_000116: 补充 11 项缺失的健康管理菜单(多租户安全) - 修复 000101: UUID 格式错误(缺少第 4 段) - 修复 000104/000106/000107: Expr::val → Expr::cust(SQL 函数不应被引号包裹) - 修复 000109: 外键创建改为 IF NOT EXISTS 模式 - 修复 000110: 表名 critical_alerts → critical_alert(匹配实际表名) - 修复 000111/000112: create_table + create_index 添加 if_not_exists() - 修复 000113: 改为 raw SQL 幂等模式,修正 FK 目标表名 patients → patient
This commit is contained in:
@@ -115,6 +115,7 @@ mod m20260505_000112_create_shift_management;
|
||||
mod m20260505_000113_create_ble_gateways;
|
||||
mod m20260505_000114_dialysis_record_add_workflow_instance;
|
||||
mod m20260505_000115_family_member_health_proxy;
|
||||
mod m20260505_000116_seed_missing_health_menus;
|
||||
|
||||
pub struct Migrator;
|
||||
|
||||
@@ -237,6 +238,7 @@ impl MigratorTrait for Migrator {
|
||||
Box::new(m20260505_000113_create_ble_gateways::Migration),
|
||||
Box::new(m20260505_000114_dialysis_record_add_workflow_instance::Migration),
|
||||
Box::new(m20260505_000115_family_member_health_proxy::Migration),
|
||||
Box::new(m20260505_000116_seed_missing_health_menus::Migration),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user