|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# XXL-JOB v2.1.1-SNAPSHOT
|
|
|
|
|
# Copyright (c) 2015-present, xuxueli.
|
|
|
|
|
|
|
|
|
|
CREATE database if NOT EXISTS `xxl_job` default character set utf8 collate utf8_general_ci;
|
|
|
|
|
CREATE database if NOT EXISTS `xxl_job` default character set utf8mb4 collate utf8mb4_general_ci;
|
|
|
|
|
use `xxl_job`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ CREATE TABLE `xxl_job_info` (
|
|
|
|
|
`trigger_last_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '上次调度时间',
|
|
|
|
|
`trigger_next_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '下次调度时间',
|
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_log` (
|
|
|
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -51,7 +51,7 @@ CREATE TABLE `xxl_job_log` (
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `I_trigger_time` (`trigger_time`),
|
|
|
|
|
KEY `I_handle_code` (`handle_code`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_logglue` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -62,7 +62,7 @@ CREATE TABLE `xxl_job_logglue` (
|
|
|
|
|
`add_time` timestamp NULL DEFAULT NULL,
|
|
|
|
|
`update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_registry` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -72,7 +72,7 @@ CREATE TABLE `xxl_job_registry` (
|
|
|
|
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_group` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -82,7 +82,7 @@ CREATE TABLE `xxl_job_group` (
|
|
|
|
|
`address_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入',
|
|
|
|
|
`address_list` varchar(512) DEFAULT NULL COMMENT '执行器地址列表,多地址逗号分隔',
|
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_user` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -92,12 +92,12 @@ CREATE TABLE `xxl_job_user` (
|
|
|
|
|
`permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
UNIQUE KEY `i_username` (`username`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `xxl_job_lock` (
|
|
|
|
|
`lock_name` varchar(50) NOT NULL COMMENT '锁名称',
|
|
|
|
|
PRIMARY KEY (`lock_name`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `order`, `address_type`, `address_list`) VALUES (1, 'xxl-job-executor-sample', '示例执行器', 1, 0, NULL);
|
|
|
|
|