fix(aihr): add semantic daily drill scoring fallback

This commit is contained in:
2026-07-14 15:53:04 +08:00
parent 14d91f86a9
commit 4d4d911bad
11 changed files with 164 additions and 15 deletions
@@ -0,0 +1,23 @@
-- 每日三题评分模式留痕:幂等补列,不写入业务数据。
SET @db_name = DATABASE();
SET @table_exists = (
SELECT COUNT(*)
FROM information_schema.tables
WHERE table_schema = @db_name
AND table_name = 'aihr_practice_assignment'
);
SET @column_exists = (
SELECT COUNT(*)
FROM information_schema.columns
WHERE table_schema = @db_name
AND table_name = 'aihr_practice_assignment'
AND column_name = 'score_mode'
);
SET @ddl = IF(
@table_exists = 1 AND @column_exists = 0,
'ALTER TABLE aihr_practice_assignment ADD COLUMN score_mode varchar(30) DEFAULT NULL COMMENT ''评分模式 LLM/RULE_FALLBACK'' AFTER score',
'SELECT 1'
);
PREPARE stmt FROM @ddl;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;