|
@@ -1,3 +1,14 @@
|
|
|
+/*
|
|
|
+DROP TABLE IF EXISTS xxl_job_group;
|
|
|
+DROP TABLE IF EXISTS xxl_job_info;
|
|
|
+DROP TABLE IF EXISTS xxl_job_lock;
|
|
|
+DROP TABLE IF EXISTS xxl_job_log;
|
|
|
+DROP TABLE IF EXISTS xxl_job_log_report;
|
|
|
+DROP TABLE IF EXISTS xxl_job_logglue;
|
|
|
+DROP TABLE IF EXISTS xxl_job_registry;
|
|
|
+DROP TABLE IF EXISTS xxl_job_user;
|
|
|
+*/
|
|
|
+
|
|
|
CREATE TABLE `xxl_job_info` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
|
@@ -104,8 +115,8 @@ CREATE TABLE `xxl_job_lock` (
|
|
|
PRIMARY KEY (`lock_name`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
-INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1, 'job-executor-sample', '示例执行器', 0, NULL, now());
|
|
|
-INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`)
|
|
|
-VALUES (1, 1, '测试任务1', now(), now(), '管理员', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', now(), '');
|
|
|
INSERT INTO `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`) VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
|
|
|
INSERT INTO `xxl_job_lock` ( `lock_name`) VALUES ( 'schedule_lock');
|
|
|
+INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1, 'oe-task-executor', '网考任务执行器', 0, NULL, now());
|
|
|
+INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`)
|
|
|
+VALUES (1, 1, '同步考试记录任务', now(), now(), '管理员', '', 'NONE', '', 'DO_NOTHING', 'FIRST', 'syncExamRecordJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', now(), '');
|