|
@@ -9,7 +9,6 @@ DROP TABLE ec_prt_exam_structure;
|
|
|
DROP TABLE ec_prt_objective_question_structure;
|
|
|
DROP TABLE ec_prt_subjective_question_structure;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_course_paper (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -27,14 +26,13 @@ CREATE TABLE ec_prt_course_paper (
|
|
|
paper_p int(11) DEFAULT NULL,
|
|
|
paper_pdf_url varchar(255) DEFAULT NULL,
|
|
|
PRIMARY KEY (id),
|
|
|
- UNIQUE KEY INDEX_PRT_COURSE_PAPER_03 (examId, paper_id),
|
|
|
+ UNIQUE KEY INDEX_PRT_COURSE_PAPER_03 (exam_id, paper_id),
|
|
|
KEY INDEX_PRT_COURSE_PAPER_01 (org_id),
|
|
|
KEY INDEX_PRT_COURSE_PAPER_02 (exam_id)
|
|
|
)
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_course_statistic (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -58,7 +56,6 @@ CREATE TABLE ec_prt_course_statistic (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_exam_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -75,7 +72,6 @@ CREATE TABLE ec_prt_exam_structure (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_objective_question_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -99,7 +95,6 @@ CREATE TABLE ec_prt_objective_question_structure (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_project (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -125,7 +120,6 @@ CREATE TABLE ec_prt_project (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_project_backup_setting (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -146,7 +140,6 @@ CREATE TABLE ec_prt_project_backup_setting (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_project_other_setting (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -159,7 +152,6 @@ CREATE TABLE ec_prt_project_other_setting (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_project_statistic (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -179,7 +171,6 @@ CREATE TABLE ec_prt_project_statistic (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_subjective_question_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -202,7 +193,6 @@ CREATE TABLE ec_prt_subjective_question_structure (
|
|
|
ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
CREATE TABLE ec_prt_template (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
@@ -217,4 +207,4 @@ CREATE TABLE ec_prt_template (
|
|
|
KEY INDEX_PRT_TEMPLATE_02 (exam_id)
|
|
|
)
|
|
|
ENGINE = InnoDB
|
|
|
- DEFAULT CHARSET = utf8;
|
|
|
+ DEFAULT CHARSET = utf8;
|