Răsfoiți Sursa

3.3.0 更新脚本优化

xiaofei 1 an în urmă
părinte
comite
1e6b96b1a3
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      distributed-print/install/mysql/upgrade/3.3.0.sql

+ 6 - 1
distributed-print/install/mysql/upgrade/3.3.0.sql

@@ -818,6 +818,8 @@ DELETE FROM `sys_privilege` WHERE (`id` = '822');
 DELETE FROM `sys_privilege` WHERE (`id` = '823');
 DELETE FROM `sys_privilege` WHERE (`id` = '823');
 DELETE FROM `sys_privilege` WHERE (`id` = '824');
 DELETE FROM `sys_privilege` WHERE (`id` = '824');
 DELETE FROM `sys_privilege` WHERE (`id` = '818');
 DELETE FROM `sys_privilege` WHERE (`id` = '818');
+
+delete from t_b_task where type in ('COURSE_IMPORT', 'ORG_IMPORT');
 delete from t_b_sync_task where type in ('EXAM_PUSH','STRUCTURE_GROUP_PUSH','MARK_LEADER_PUSH','MARKER_PUSH','PAPER_ANSWER_FILE_PUSH','OBJECTIVE_ANSWER_PUSH', 'SCORE_PUSH');
 delete from t_b_sync_task where type in ('EXAM_PUSH','STRUCTURE_GROUP_PUSH','MARK_LEADER_PUSH','MARKER_PUSH','PAPER_ANSWER_FILE_PUSH','OBJECTIVE_ANSWER_PUSH', 'SCORE_PUSH');
 ALTER TABLE `t_b_sync_task`
 ALTER TABLE `t_b_sync_task`
     DROP COLUMN `org_code`,
     DROP COLUMN `org_code`,
@@ -846,7 +848,6 @@ INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `related`, `enable`, `default_auth`, `front_display`) VALUES ('489', '成绩报告', 'ScoreReport', 'LINK', '487', '2', 'AUTH', '494', '1', '0', '1');
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `related`, `enable`, `default_auth`, `front_display`) VALUES ('489', '成绩报告', 'ScoreReport', 'LINK', '487', '2', 'AUTH', '494', '1', '0', '1');
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `related`, `enable`, `default_auth`, `front_display`) VALUES ('490', '列表查询', '/api/admin/mark/archive/student/list', 'URL', '488', '1', 'AUTH', NULL, '1', '1', '1');
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `related`, `enable`, `default_auth`, `front_display`) VALUES ('490', '列表查询', '/api/admin/mark/archive/student/list', 'URL', '488', '1', 'AUTH', NULL, '1', '1', '1');
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `enable`, `default_auth`, `front_display`) VALUES ('494', '报告数据', '/api/admin/mark/archive/score/report', 'URL', '489', '1', 'AUTH', '1', '1', '1');
 INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `enable`, `default_auth`, `front_display`) VALUES ('494', '报告数据', '/api/admin/mark/archive/score/report', 'URL', '489', '1', 'AUTH', '1', '1', '1');
-INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `enable`, `default_auth`, `front_display`) VALUES ('1009', '任务列表', '/api/scan/task/omr/list', 'URL', '970', '37', 'AUTH', '1', '1', '1');
 UPDATE `sys_privilege` SET `property` = 'SYS' WHERE (`id` = '370');
 UPDATE `sys_privilege` SET `property` = 'SYS' WHERE (`id` = '370');
 delete from sys_config  where config_key = 'cloudmark.host.url';
 delete from sys_config  where config_key = 'cloudmark.host.url';
 delete from sys_config  where config_key = 'cloudmark.sync.mode';
 delete from sys_config  where config_key = 'cloudmark.sync.mode';
@@ -874,3 +875,7 @@ ADD COLUMN `undertaking_body` VARCHAR(300) NULL COMMENT '考生承诺书内容'
 
 
 ALTER TABLE `basic_template`
 ALTER TABLE `basic_template`
     ADD COLUMN `font_size` VARCHAR(10) DEFAULT 'SMALL' COMMENT '字体大小(small,medium,large)' AFTER `line_height_times`;
     ADD COLUMN `font_size` VARCHAR(10) DEFAULT 'SMALL' COMMENT '字体大小(small,medium,large)' AFTER `line_height_times`;
+
+ALTER TABLE `basic_operation_log`
+    CHANGE COLUMN `customized_operation_type` `customized_operation_type` VARCHAR(32) CHARACTER SET 'utf8' NULL COMMENT '自定义记录日志操作类型(LOGIN(\"用户登录\"),LOGOUT(\"用户登出\"),ADD(\"新增\"),DELETE(\"删除\"),UPDATE(\"修改\"),IMPORT(\"导入\"),EXPORT(\"导出\"),UN_KNOW(\"未知\"))' ;
+update basic_operation_log set customized_operation_type = null where customized_operation_type = '';