|
|
@ -3,7 +3,7 @@ use `xxl-job`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_INFO` (
|
|
|
|
CREATE TABLE `xxl_job_info` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
|
|
|
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
|
|
|
`job_cron` varchar(128) NOT NULL COMMENT '任务执行CRON',
|
|
|
|
`job_cron` varchar(128) NOT NULL COMMENT '任务执行CRON',
|
|
|
@ -29,7 +29,7 @@ CREATE TABLE `XXL_JOB_INFO` (
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_LOG` (
|
|
|
|
CREATE TABLE `xxl_job_log` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
|
|
|
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
|
|
|
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
|
|
|
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
|
|
@ -50,7 +50,7 @@ CREATE TABLE `XXL_JOB_LOG` (
|
|
|
|
KEY `I_handle_code` (`handle_code`)
|
|
|
|
KEY `I_handle_code` (`handle_code`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_LOGGLUE` (
|
|
|
|
CREATE TABLE `xxl_job_logglue` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
|
|
|
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
|
|
|
`glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
|
|
|
|
`glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
|
|
|
@ -61,7 +61,7 @@ CREATE TABLE `XXL_JOB_LOGGLUE` (
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_REGISTRY` (
|
|
|
|
CREATE TABLE `xxl_job_registry` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`registry_group` varchar(255) NOT NULL,
|
|
|
|
`registry_group` varchar(255) NOT NULL,
|
|
|
|
`registry_key` varchar(255) NOT NULL,
|
|
|
|
`registry_key` varchar(255) NOT NULL,
|
|
|
@ -71,7 +71,7 @@ CREATE TABLE `XXL_JOB_REGISTRY` (
|
|
|
|
KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
|
|
|
|
KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_GROUP` (
|
|
|
|
CREATE TABLE `xxl_job_group` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
|
|
|
|
`app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
|
|
|
|
`title` varchar(12) NOT NULL COMMENT '执行器名称',
|
|
|
|
`title` varchar(12) NOT NULL COMMENT '执行器名称',
|
|
|
@ -81,7 +81,7 @@ CREATE TABLE `XXL_JOB_GROUP` (
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_USER` (
|
|
|
|
CREATE TABLE `xxl_job_user` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`username` varchar(50) NOT NULL COMMENT '账号',
|
|
|
|
`username` varchar(50) NOT NULL COMMENT '账号',
|
|
|
|
`password` varchar(50) NOT NULL COMMENT '密码',
|
|
|
|
`password` varchar(50) NOT NULL COMMENT '密码',
|
|
|
@ -91,16 +91,16 @@ CREATE TABLE `XXL_JOB_USER` (
|
|
|
|
UNIQUE KEY `i_username` (`username`) USING BTREE
|
|
|
|
UNIQUE KEY `i_username` (`username`) USING BTREE
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `XXL_JOB_LOCK` (
|
|
|
|
CREATE TABLE `xxl_job_lock` (
|
|
|
|
`lock_name` varchar(50) NOT NULL COMMENT '锁名称',
|
|
|
|
`lock_name` varchar(50) NOT NULL COMMENT '锁名称',
|
|
|
|
PRIMARY KEY (`lock_name`)
|
|
|
|
PRIMARY KEY (`lock_name`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `XXL_JOB_GROUP`(`id`, `app_name`, `title`, `order`, `address_type`, `address_list`) VALUES (1, 'xxl-job-executor-sample', '示例执行器', 1, 0, NULL);
|
|
|
|
INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `order`, `address_type`, `address_list`) VALUES (1, 'xxl-job-executor-sample', '示例执行器', 1, 0, NULL);
|
|
|
|
INSERT INTO `XXL_JOB_INFO`(`id`, `job_group`, `job_cron`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `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, '0 0 0 * * ? *', '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '');
|
|
|
|
INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_cron`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `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, '0 0 0 * * ? *', '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', '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_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_lock` ( `lock_name`) VALUES ( 'schedule_lock');
|
|
|
|
|
|
|
|
|
|
|
|
commit;
|
|
|
|
commit;
|
|
|
|
|
|
|
|
|
|
|
|