fix: restore match3d indexed visibility reads

This commit is contained in:
kdletters
2026-05-28 04:27:51 +08:00
parent a0134ce966
commit 82f24ded1b
5 changed files with 32 additions and 31 deletions

View File

@@ -16,7 +16,7 @@ use crate::jump_hop::tables::{
jump_hop_agent_session, jump_hop_event, jump_hop_runtime_run, jump_hop_work_profile,
};
use crate::match3d::tables::{
match3d_agent_message, match3d_agent_session, match3d_runtime_run, match3d_work_profile,
match3d_agent_message, match3d_agent_session, match3d_runtime_run, match_3_d_work_profile,
};
use crate::puzzle::{
puzzle_agent_message, puzzle_agent_session, puzzle_event, puzzle_leaderboard_entry,
@@ -238,7 +238,7 @@ macro_rules! migration_tables {
bark_battle_personal_best_projection,
match3d_agent_session,
match3d_agent_message,
match3d_work_profile,
match_3_d_work_profile,
match3d_runtime_run,
jump_hop_agent_session,
jump_hop_work_profile,
@@ -1324,7 +1324,7 @@ fn normalize_migration_row(table_name: &str, value: &serde_json::Value) -> serde
.or_insert_with(|| serde_json::Value::Bool(true));
}
}
if table_name == "match3d_work_profile" {
if table_name == "match_3_d_work_profile" || table_name == "match3d_work_profile" {
if let Some(object) = next_value.as_object_mut() {
// 中文注释:作品可见性字段晚于首版作品表加入,旧迁移包按默认显示兼容。
object