1
0
huangjianxiong 1 жил өмнө
parent
commit
3ea66762f6

+ 53 - 53
install/mysql/upgrade/1.3.14.sql

@@ -401,37 +401,37 @@ DROP TABLE IF EXISTS `b_role_temp`;
 
 use college_scan_multi;
 
-TRUNCATE TABLE absent;
-TRUNCATE TABLE append_scan;
-TRUNCATE TABLE baseinfo;
-TRUNCATE TABLE baseinfolog;
-TRUNCATE TABLE campus;
-TRUNCATE TABLE card_defcount;
+TRUNCATE TABLE college_scan_multi.absent;
+TRUNCATE TABLE college_scan_multi.append_scan;
+TRUNCATE TABLE college_scan_multi.baseinfo;
+TRUNCATE TABLE college_scan_multi.baseinfolog;
+TRUNCATE TABLE college_scan_multi.campus;
+TRUNCATE TABLE college_scan_multi.card_defcount;
 --  TRUNCATE TABLE import_sign_page;
-TRUNCATE TABLE kslb;
-TRUNCATE TABLE config;
-TRUNCATE TABLE registqty;
-TRUNCATE TABLE subject_code_kgt;
-TRUNCATE TABLE task_master;
-
--- DROP table check_omr;
--- drop table check_student;
--- drop table cliprect;
--- drop table objective;
--- drop table ocrdata;
--- drop table omrresult;
--- drop table registno;
--- drop table sign_page;
--- drop table task_child;
--- drop table upload_file_list;
--- drop table verify_check_info;
--- drop table import_sign_page;
+TRUNCATE TABLE college_scan_multi.kslb;
+TRUNCATE TABLE college_scan_multi.config;
+TRUNCATE TABLE college_scan_multi.registqty;
+TRUNCATE TABLE college_scan_multi.subject_code_kgt;
+TRUNCATE TABLE college_scan_multi.task_master;
+
+-- DROP table college_scan_multi.check_omr;
+-- drop table college_scan_multi.check_student;
+-- drop table college_scan_multi.cliprect;
+-- drop table college_scan_multi.objective;
+-- drop table college_scan_multi.ocrdata;
+-- drop table college_scan_multi.omrresult;
+-- drop table college_scan_multi.registno;
+-- drop table college_scan_multi.sign_page;
+-- drop table college_scan_multi.task_child;
+-- drop table college_scan_multi.upload_file_list;
+-- drop table college_scan_multi.verify_check_info;
+-- drop table college_scan_multi.import_sign_page;
 
 -- ----------------------------
 -- Table structure for upload_file_list
 -- ----------------------------
-DROP TABLE IF EXISTS `upload_file_list`;
-CREATE TABLE `upload_file_list` (
+DROP TABLE IF EXISTS college_scan_multi.`upload_file_list`;
+CREATE TABLE college_scan_multi.`upload_file_list` (
   `exam_id` int(11) NOT NULL,
   `subject_code` varchar(30) NOT NULL,
   `subject_name` varchar(50) DEFAULT NULL,
@@ -446,8 +446,8 @@ CREATE TABLE `upload_file_list` (
 -- ----------------------------
 -- Table structure for task_child
 -- ----------------------------
-DROP TABLE IF EXISTS `task_child`;
-CREATE TABLE `task_child` (
+DROP TABLE IF EXISTS college_scan_multi.`task_child`;
+CREATE TABLE college_scan_multi.`task_child` (
   `exam_id` int(11) NOT NULL,
   `exam_number` varchar(30) NOT NULL,
   `task_id` varchar(30) NOT NULL,
@@ -460,8 +460,8 @@ CREATE TABLE `task_child` (
 -- ----------------------------
 -- Table structure for sign_page
 -- ----------------------------
-DROP TABLE IF EXISTS `sign_page`;
-CREATE TABLE `sign_page` (
+DROP TABLE IF EXISTS college_scan_multi.`sign_page`;
+CREATE TABLE college_scan_multi.`sign_page` (
   `exam_id` int(11) NOT NULL,
   `exam_number` varchar(30) NOT NULL,
   `exam_site` varchar(50) DEFAULT NULL,
@@ -484,8 +484,8 @@ CREATE TABLE `sign_page` (
 -- ----------------------------
 -- Table structure for registno
 -- ----------------------------
-DROP TABLE IF EXISTS `registno`;
-CREATE TABLE `registno` (
+DROP TABLE IF EXISTS college_scan_multi.`registno`;
+CREATE TABLE college_scan_multi.`registno` (
   `DiskSerNo` varchar(30) DEFAULT NULL,
   `ExamId` int(11) NOT NULL,
   `RegistNo` varchar(30) NOT NULL,
@@ -505,8 +505,8 @@ CREATE TABLE `registno` (
 -- ----------------------------
 -- Table structure for omrresult
 -- ----------------------------
-DROP TABLE IF EXISTS `omrresult`;
-CREATE TABLE `omrresult` (
+DROP TABLE IF EXISTS college_scan_multi.`omrresult`;
+CREATE TABLE college_scan_multi.`omrresult` (
   `examid` int(11) DEFAULT '0',
   `subjectCode` varchar(30) DEFAULT NULL,
   `examNumber` varchar(30) DEFAULT '',
@@ -524,8 +524,8 @@ CREATE TABLE `omrresult` (
 -- ----------------------------
 -- Table structure for ocrdata
 -- ----------------------------
-DROP TABLE IF EXISTS `ocrdata`;
-CREATE TABLE `ocrdata` (
+DROP TABLE IF EXISTS college_scan_multi.`ocrdata`;
+CREATE TABLE college_scan_multi.`ocrdata` (
   `DiskSerNo` varchar(50) DEFAULT NULL,
   `DiskSerNo_KGT` varchar(50) DEFAULT NULL,
   `Batch` varchar(10) DEFAULT NULL,
@@ -590,8 +590,8 @@ CREATE TABLE `ocrdata` (
 -- ----------------------------
 -- Table structure for objective
 -- ----------------------------
-DROP TABLE IF EXISTS `objective`;
-CREATE TABLE `objective` (
+DROP TABLE IF EXISTS college_scan_multi.`objective`;
+CREATE TABLE college_scan_multi.`objective` (
   `DiskSerNo` varchar(50) DEFAULT NULL,
   `ExamID` int(11) NOT NULL,
   `SubjectCode` varchar(30) NOT NULL,
@@ -609,8 +609,8 @@ CREATE TABLE `objective` (
 -- ----------------------------
 -- Table structure for cliprect
 -- ----------------------------
-DROP TABLE IF EXISTS `cliprect`;
-CREATE TABLE `cliprect` (
+DROP TABLE IF EXISTS college_scan_multi.`cliprect`;
+CREATE TABLE college_scan_multi.`cliprect` (
   `ExamID` int(11) DEFAULT NULL,
   `DiskSerNo` varchar(30) DEFAULT NULL,
   `FormID` int(3) DEFAULT NULL,
@@ -621,8 +621,8 @@ CREATE TABLE `cliprect` (
 -- ----------------------------
 -- Table structure for check_student
 -- ----------------------------
-DROP TABLE IF EXISTS `check_student`;
-CREATE TABLE `check_student` (
+DROP TABLE IF EXISTS college_scan_multi.`check_student`;
+CREATE TABLE college_scan_multi.`check_student` (
   `exam_id` int(11) NOT NULL,
   `exam_site` varchar(50) DEFAULT NULL,
   `student_code` varchar(50) DEFAULT NULL,
@@ -649,8 +649,8 @@ CREATE TABLE `check_student` (
 -- ----------------------------
 -- Table structure for check_omr
 -- ----------------------------
-DROP TABLE IF EXISTS `check_omr`;
-CREATE TABLE `check_omr` (
+DROP TABLE IF EXISTS college_scan_multi.`check_omr`;
+CREATE TABLE college_scan_multi.`check_omr` (
   `exam_id` int(11) NOT NULL,
   `student_id` varchar(30) NOT NULL,
   `subject_code` varchar(30) NOT NULL,
@@ -674,8 +674,8 @@ CREATE TABLE `check_omr` (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 
-DROP TABLE IF EXISTS `eb_exam_student`;
-CREATE TABLE `eb_exam_student` (
+DROP TABLE IF EXISTS college_scan_multi.`eb_exam_student`;
+CREATE TABLE college_scan_multi.`eb_exam_student` (
   `auid` int(11) NOT NULL AUTO_INCREMENT,
   `exam_id` int(11) NOT NULL COMMENT '考试ID',
   `school_id` int(11) NOT NULL COMMENT '学校ID',
@@ -706,10 +706,10 @@ CREATE TABLE `eb_exam_student` (
   KEY `package_code` (`package_code`),
   KEY `exam_site` (`exam_site`),
   KEY `exam_room` (`exam_room`)
-) ENGINE=InnoDB AUTO_INCREMENT=240437 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
-DROP TABLE IF EXISTS `ocrdata_history`;
-CREATE TABLE `ocrdata_history` (
+DROP TABLE IF EXISTS college_scan_multi.`ocrdata_history`;
+CREATE TABLE college_scan_multi.`ocrdata_history` (
   `remark` varchar(100) DEFAULT NULL,
   `DiskSerNo` varchar(50) DEFAULT NULL,
   `DiskSerNo_KGT` varchar(50) DEFAULT NULL,
@@ -757,8 +757,8 @@ CREATE TABLE `ocrdata_history` (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 
-DROP TABLE IF EXISTS `import_sign_page`;
-CREATE TABLE `import_sign_page` (
+DROP TABLE IF EXISTS college_scan_multi.`import_sign_page`;
+CREATE TABLE college_scan_multi.`import_sign_page` (
   `exam_id` int(5) NOT NULL,
   `exam_site` varchar(50) DEFAULT NULL,
   `exam_room` varchar(100) DEFAULT NULL,
@@ -777,8 +777,8 @@ CREATE TABLE `import_sign_page` (
   KEY `subject_code` (`subject_code`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
-DROP TABLE IF EXISTS `verify_check_info`;
-CREATE TABLE `verify_check_info` (
+DROP TABLE IF EXISTS college_scan_multi.`verify_check_info`;
+CREATE TABLE college_scan_multi.`verify_check_info` (
   `exam_id` int(11) NOT NULL,
   `campus_code` int(30) DEFAULT NULL,
   `exam_number` varchar(30) NOT NULL,