feat: add puzzle clear template runtime
This commit is contained in:
@@ -22,6 +22,10 @@ use crate::puzzle::{
|
||||
puzzle_agent_message, puzzle_agent_session, puzzle_event, puzzle_leaderboard_entry,
|
||||
puzzle_runtime_run, puzzle_work_profile,
|
||||
};
|
||||
use crate::puzzle_clear::tables::{
|
||||
puzzle_clear_agent_session, puzzle_clear_event, puzzle_clear_runtime_run,
|
||||
puzzle_clear_work_profile,
|
||||
};
|
||||
use crate::square_hole::tables::{
|
||||
square_hole_agent_message, square_hole_agent_session, square_hole_runtime_run,
|
||||
square_hole_work_profile,
|
||||
@@ -229,6 +233,10 @@ macro_rules! migration_tables {
|
||||
puzzle_event,
|
||||
puzzle_runtime_run,
|
||||
puzzle_leaderboard_entry,
|
||||
puzzle_clear_agent_session,
|
||||
puzzle_clear_work_profile,
|
||||
puzzle_clear_runtime_run,
|
||||
puzzle_clear_event,
|
||||
bark_battle_draft_config,
|
||||
bark_battle_published_config,
|
||||
bark_battle_runtime_run,
|
||||
@@ -1313,6 +1321,7 @@ fn normalize_migration_row(table_name: &str, value: &serde_json::Value) -> serde
|
||||
if matches!(
|
||||
table_name,
|
||||
"jump_hop_work_profile"
|
||||
| "puzzle_clear_work_profile"
|
||||
| "square_hole_work_profile"
|
||||
| "visual_novel_work_profile"
|
||||
| "bark_battle_published_config"
|
||||
@@ -1322,6 +1331,12 @@ fn normalize_migration_row(table_name: &str, value: &serde_json::Value) -> serde
|
||||
object
|
||||
.entry("visible".to_string())
|
||||
.or_insert_with(|| serde_json::Value::Bool(true));
|
||||
if table_name == "puzzle_clear_work_profile" {
|
||||
// 中文注释:拼消消底图提示词字段晚于作品表加入,旧迁移包按空提示词兼容。
|
||||
object
|
||||
.entry("board_background_prompt".to_string())
|
||||
.or_insert(serde_json::Value::Null);
|
||||
}
|
||||
}
|
||||
}
|
||||
if table_name == "match_3_d_work_profile" || table_name == "match3d_work_profile" {
|
||||
|
||||
Reference in New Issue
Block a user