fix(education): align Flyway delivery review
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- Document the state-machine and protected snapshot fields introduced by the
|
||||
-- already-published Practice migrations. This is metadata-only and forward-safe.
|
||||
|
||||
COMMENT ON COLUMN education_practice_question.correct_answer IS '练习题目快照标准答案;仅允许交卷后的受控报告链路读取';
|
||||
COMMENT ON COLUMN education_practice_question.explanation IS '练习题目快照解析;练习进行中不得返回客户端';
|
||||
COMMENT ON COLUMN education_practice_report_detail.correct_answer IS '不可变报告明细中的标准答案快照';
|
||||
COMMENT ON COLUMN education_practice_report_detail.explanation IS '不可变报告明细中的题目解析快照';
|
||||
COMMENT ON COLUMN education_wrong_question.latest_correct_answer IS '最近一次错题投影使用的标准答案快照';
|
||||
COMMENT ON COLUMN education_wrong_question.latest_explanation IS '最近一次错题投影使用的解析快照';
|
||||
COMMENT ON COLUMN education_idempotency.operation IS '幂等操作类型,例如 SUBMIT_ANSWER 或 SUBMIT_SESSION';
|
||||
COMMENT ON COLUMN education_idempotency.status IS '幂等处理状态;交卷使用 PROCESSING 与 COMPLETED 状态机';
|
||||
COMMENT ON COLUMN education_idempotency.response_json IS '完成后的不可变响应快照,用于同键重放';
|
||||
COMMENT ON COLUMN education_idempotency.business_payload IS '业务处理快照;用于恢复和一致性校验';
|
||||
@@ -94,7 +94,7 @@ class EducationFlywayMigrationIntegrationTest {
|
||||
|
||||
assertThat(queryStrings(schema,
|
||||
"SELECT COALESCE(version, 'BASELINE') FROM flyway_schema_history ORDER BY installed_rank"))
|
||||
.containsExactly("4009", "4010", "4020", "4030", "4040");
|
||||
.containsExactly("4009", "4010", "4020", "4030", "4040", "4050");
|
||||
assertThat(queryLong(schema,
|
||||
"SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = current_schema() " +
|
||||
"AND table_name = 'education_idempotency'"))
|
||||
@@ -156,7 +156,7 @@ class EducationFlywayMigrationIntegrationTest {
|
||||
|
||||
assertThat(queryStrings(schema,
|
||||
"SELECT version FROM flyway_schema_history WHERE success = TRUE ORDER BY installed_rank"))
|
||||
.containsExactly("4010", "4020", "4030", "4040");
|
||||
.containsExactly("4010", "4020", "4030", "4040", "4050");
|
||||
assertThat(queryStrings(schema,
|
||||
"SELECT table_name FROM information_schema.tables " +
|
||||
"WHERE table_schema = current_schema() AND table_name IN (" +
|
||||
|
||||
Reference in New Issue
Block a user