|
@@ -41,9 +41,11 @@ where t.type = 'CUSTOM' and t.card_rule_id is null and t.id > 0;
|
|
CREATE TABLE `exam_detail_course_paper_type` (
|
|
CREATE TABLE `exam_detail_course_paper_type` (
|
|
`id` BIGINT(20) NOT NULL,
|
|
`id` BIGINT(20) NOT NULL,
|
|
`exam_detail_course_id` BIGINT(20) NOT NULL,
|
|
`exam_detail_course_id` BIGINT(20) NOT NULL,
|
|
- `paper_type` VARCHAR(1) NOT NULL COMMENT '卷型',
|
|
|
|
|
|
+ `paper_type` VARCHAR(5) NOT NULL COMMENT '卷型',
|
|
PRIMARY KEY (`id`));
|
|
PRIMARY KEY (`id`));
|
|
ALTER TABLE `exam_detail_course_paper_type`
|
|
ALTER TABLE `exam_detail_course_paper_type`
|
|
- ADD INDEX `idx_exam_detail_course_id` (`exam_detail_course_id` ASC) VISIBLE;
|
|
|
|
|
|
+ ADD INDEX `idx_exam_detail_course_id` (`exam_detail_course_id` ASC);
|
|
|
|
+
|
|
|
|
+insert into exam_detail_course_paper_type select id + cast(FLOOR(RAND()*10000000000000) as signed), id, paper_type from exam_detail_course where paper_type is not null and id>0;
|
|
|
|
|
|
-----------------------3.2.5 end----------------------
|
|
-----------------------3.2.5 end----------------------
|