|
@@ -170,4 +170,12 @@ CREATE TABLE `scan_answer_card_question` (
|
|
`update_id` bigint NULL DEFAULT NULL,
|
|
`update_id` bigint NULL DEFAULT NULL,
|
|
`update_time` bigint NULL DEFAULT NULL,
|
|
`update_time` bigint NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
-) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卡格式题型';
|
|
|
|
|
|
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卡格式题型';
|
|
|
|
+
|
|
|
|
+-- 2024-11-15
|
|
|
|
+ALTER TABLE t_c_paper_struct DROP KEY t_c_paper_struct_unique;
|
|
|
|
+ALTER TABLE t_c_paper_struct ADD CONSTRAINT t_c_paper_struct_unique UNIQUE KEY (culture_program_id,exam_id,course_id,paper_number);
|
|
|
|
+ALTER TABLE t_c_final_score DROP KEY t_c_final_score_unique;
|
|
|
|
+ALTER TABLE t_c_final_score ADD CONSTRAINT t_c_final_score_unique UNIQUE KEY (culture_program_id,exam_id,course_id,paper_number,student_code);
|
|
|
|
+ALTER TABLE t_c_usual_score DROP KEY t_c_usual_score_unique;
|
|
|
|
+ALTER TABLE t_c_usual_score ADD CONSTRAINT t_c_usual_score_unique UNIQUE KEY (culture_program_id,exam_id,course_id,paper_number,student_code);
|