|
|
|
@ -56,7 +56,9 @@ CREATE TABLE `xxl_job_log`
|
|
|
|
|
`alarm_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `I_trigger_time` (`trigger_time`),
|
|
|
|
|
KEY `I_handle_code` (`handle_code`)
|
|
|
|
|
KEY `I_handle_code` (`handle_code`),
|
|
|
|
|
KEY `I_jobid_jobgroup` (`job_id`,`job_group`),
|
|
|
|
|
KEY `I_job_id` (`job_id`)
|
|
|
|
|
) ENGINE = InnoDB
|
|
|
|
|
DEFAULT CHARSET = utf8mb4;
|
|
|
|
|
|
|
|
|
@ -134,6 +136,7 @@ CREATE TABLE `xxl_job_lock`
|
|
|
|
|
|
|
|
|
|
INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`)
|
|
|
|
|
VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, '2018-11-03 22:21:31');
|
|
|
|
|
|
|
|
|
|
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`,
|
|
|
|
@ -142,8 +145,10 @@ INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_ti
|
|
|
|
|
VALUES (1, 1, '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *',
|
|
|
|
|
'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
|
|
|
|
|
'2018-11-03 22:21:31', '');
|
|
|
|
|
|
|
|
|
|
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');
|
|
|
|
|
|
|
|
|
|