同步最新表结构与数据
This commit is contained in:
parent
6135570922
commit
bbfa4783d4
473
sql/quartz.sql
473
sql/quartz.sql
@ -1,188 +1,285 @@
|
|||||||
|
/*
|
||||||
#
|
Navicat Premium Data Transfer
|
||||||
# In your Quartz properties file, you'll need to set
|
|
||||||
# org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
Source Server : local-mysql001
|
||||||
#
|
Source Server Type : MySQL
|
||||||
#
|
Source Server Version : 50718
|
||||||
# By: Ron Cordell - roncordell
|
Source Host : localhost:3306
|
||||||
# I didn't see this anywhere, so I thought I'd post it here. This is the script from Quartz to create the tables in a MySQL database, modified to use INNODB instead of MYISAM.
|
Source Schema : ruoyi-vue-pro
|
||||||
|
|
||||||
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
|
Target Server Type : MySQL
|
||||||
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
|
Target Server Version : 50718
|
||||||
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
|
File Encoding : 65001
|
||||||
DROP TABLE IF EXISTS QRTZ_LOCKS;
|
|
||||||
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
|
Date: 03/05/2021 12:01:37
|
||||||
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
|
*/
|
||||||
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
|
|
||||||
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
|
SET NAMES utf8mb4;
|
||||||
DROP TABLE IF EXISTS QRTZ_TRIGGERS;
|
SET FOREIGN_KEY_CHECKS = 0;
|
||||||
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
|
|
||||||
DROP TABLE IF EXISTS QRTZ_CALENDARS;
|
-- ----------------------------
|
||||||
|
-- Table structure for QRTZ_BLOB_TRIGGERS
|
||||||
CREATE TABLE QRTZ_JOB_DETAILS(
|
-- ----------------------------
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
|
||||||
JOB_NAME VARCHAR(190) NOT NULL,
|
CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
|
||||||
JOB_GROUP VARCHAR(190) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
DESCRIPTION VARCHAR(250) NULL,
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
JOB_CLASS_NAME VARCHAR(250) NOT NULL,
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
IS_DURABLE VARCHAR(1) NOT NULL,
|
`BLOB_DATA` blob,
|
||||||
IS_NONCONCURRENT VARCHAR(1) NOT NULL,
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
IS_UPDATE_DATA VARCHAR(1) NOT NULL,
|
KEY `SCHED_NAME` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
REQUESTS_RECOVERY VARCHAR(1) NOT NULL,
|
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
JOB_DATA BLOB NULL,
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP))
|
|
||||||
ENGINE=InnoDB;
|
-- ----------------------------
|
||||||
|
-- Records of QRTZ_BLOB_TRIGGERS
|
||||||
CREATE TABLE QRTZ_TRIGGERS (
|
-- ----------------------------
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
BEGIN;
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
COMMIT;
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
|
||||||
JOB_NAME VARCHAR(190) NOT NULL,
|
-- ----------------------------
|
||||||
JOB_GROUP VARCHAR(190) NOT NULL,
|
-- Table structure for QRTZ_CALENDARS
|
||||||
DESCRIPTION VARCHAR(250) NULL,
|
-- ----------------------------
|
||||||
NEXT_FIRE_TIME BIGINT(13) NULL,
|
DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
|
||||||
PREV_FIRE_TIME BIGINT(13) NULL,
|
CREATE TABLE `QRTZ_CALENDARS` (
|
||||||
PRIORITY INTEGER NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
TRIGGER_STATE VARCHAR(16) NOT NULL,
|
`CALENDAR_NAME` varchar(190) NOT NULL,
|
||||||
TRIGGER_TYPE VARCHAR(8) NOT NULL,
|
`CALENDAR` blob NOT NULL,
|
||||||
START_TIME BIGINT(13) NOT NULL,
|
PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
|
||||||
END_TIME BIGINT(13) NULL,
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
CALENDAR_NAME VARCHAR(190) NULL,
|
|
||||||
MISFIRE_INSTR SMALLINT(2) NULL,
|
-- ----------------------------
|
||||||
JOB_DATA BLOB NULL,
|
-- Records of QRTZ_CALENDARS
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
-- ----------------------------
|
||||||
FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
|
BEGIN;
|
||||||
REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP))
|
COMMIT;
|
||||||
ENGINE=InnoDB;
|
|
||||||
|
-- ----------------------------
|
||||||
CREATE TABLE QRTZ_SIMPLE_TRIGGERS (
|
-- Table structure for QRTZ_CRON_TRIGGERS
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
-- ----------------------------
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
CREATE TABLE `QRTZ_CRON_TRIGGERS` (
|
||||||
REPEAT_COUNT BIGINT(7) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
REPEAT_INTERVAL BIGINT(12) NOT NULL,
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
TIMES_TRIGGERED BIGINT(10) NOT NULL,
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
`CRON_EXPRESSION` varchar(120) NOT NULL,
|
||||||
FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
`TIME_ZONE_ID` varchar(80) DEFAULT NULL,
|
||||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
ENGINE=InnoDB;
|
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
CREATE TABLE QRTZ_CRON_TRIGGERS (
|
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
-- ----------------------------
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
-- Records of QRTZ_CRON_TRIGGERS
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
-- ----------------------------
|
||||||
CRON_EXPRESSION VARCHAR(120) NOT NULL,
|
BEGIN;
|
||||||
TIME_ZONE_ID VARCHAR(80),
|
INSERT INTO `QRTZ_CRON_TRIGGERS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', '0 * * * * ? *', 'Asia/Shanghai');
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
COMMIT;
|
||||||
FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
|
||||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
|
-- ----------------------------
|
||||||
ENGINE=InnoDB;
|
-- Table structure for QRTZ_FIRED_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
CREATE TABLE QRTZ_SIMPROP_TRIGGERS
|
DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
|
||||||
(
|
CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
`ENTRY_ID` varchar(95) NOT NULL,
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
STR_PROP_1 VARCHAR(512) NULL,
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
STR_PROP_2 VARCHAR(512) NULL,
|
`INSTANCE_NAME` varchar(190) NOT NULL,
|
||||||
STR_PROP_3 VARCHAR(512) NULL,
|
`FIRED_TIME` bigint(13) NOT NULL,
|
||||||
INT_PROP_1 INT NULL,
|
`SCHED_TIME` bigint(13) NOT NULL,
|
||||||
INT_PROP_2 INT NULL,
|
`PRIORITY` int(11) NOT NULL,
|
||||||
LONG_PROP_1 BIGINT NULL,
|
`STATE` varchar(16) NOT NULL,
|
||||||
LONG_PROP_2 BIGINT NULL,
|
`JOB_NAME` varchar(190) DEFAULT NULL,
|
||||||
DEC_PROP_1 NUMERIC(13,4) NULL,
|
`JOB_GROUP` varchar(190) DEFAULT NULL,
|
||||||
DEC_PROP_2 NUMERIC(13,4) NULL,
|
`IS_NONCONCURRENT` varchar(1) DEFAULT NULL,
|
||||||
BOOL_PROP_1 VARCHAR(1) NULL,
|
`REQUESTS_RECOVERY` varchar(1) DEFAULT NULL,
|
||||||
BOOL_PROP_2 VARCHAR(1) NULL,
|
PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`),
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
KEY `IDX_QRTZ_FT_TRIG_INST_NAME` (`SCHED_NAME`,`INSTANCE_NAME`),
|
||||||
FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
KEY `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME`,`INSTANCE_NAME`,`REQUESTS_RECOVERY`),
|
||||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
|
KEY `IDX_QRTZ_FT_J_G` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
||||||
ENGINE=InnoDB;
|
KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
||||||
|
KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
CREATE TABLE QRTZ_BLOB_TRIGGERS (
|
KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`,`TRIGGER_GROUP`)
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
-- ----------------------------
|
||||||
BLOB_DATA BLOB NULL,
|
-- Records of QRTZ_FIRED_TRIGGERS
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
|
-- ----------------------------
|
||||||
INDEX (SCHED_NAME,TRIGGER_NAME, TRIGGER_GROUP),
|
BEGIN;
|
||||||
FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
|
COMMIT;
|
||||||
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP))
|
|
||||||
ENGINE=InnoDB;
|
-- ----------------------------
|
||||||
|
-- Table structure for QRTZ_JOB_DETAILS
|
||||||
CREATE TABLE QRTZ_CALENDARS (
|
-- ----------------------------
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
|
||||||
CALENDAR_NAME VARCHAR(190) NOT NULL,
|
CREATE TABLE `QRTZ_JOB_DETAILS` (
|
||||||
CALENDAR BLOB NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
PRIMARY KEY (SCHED_NAME,CALENDAR_NAME))
|
`JOB_NAME` varchar(190) NOT NULL,
|
||||||
ENGINE=InnoDB;
|
`JOB_GROUP` varchar(190) NOT NULL,
|
||||||
|
`DESCRIPTION` varchar(250) DEFAULT NULL,
|
||||||
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS (
|
`JOB_CLASS_NAME` varchar(250) NOT NULL,
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
`IS_DURABLE` varchar(1) NOT NULL,
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
`IS_NONCONCURRENT` varchar(1) NOT NULL,
|
||||||
PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP))
|
`IS_UPDATE_DATA` varchar(1) NOT NULL,
|
||||||
ENGINE=InnoDB;
|
`REQUESTS_RECOVERY` varchar(1) NOT NULL,
|
||||||
|
`JOB_DATA` blob,
|
||||||
CREATE TABLE QRTZ_FIRED_TRIGGERS (
|
PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`,`REQUESTS_RECOVERY`),
|
||||||
ENTRY_ID VARCHAR(95) NOT NULL,
|
KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`,`JOB_GROUP`)
|
||||||
TRIGGER_NAME VARCHAR(190) NOT NULL,
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
TRIGGER_GROUP VARCHAR(190) NOT NULL,
|
|
||||||
INSTANCE_NAME VARCHAR(190) NOT NULL,
|
-- ----------------------------
|
||||||
FIRED_TIME BIGINT(13) NOT NULL,
|
-- Records of QRTZ_JOB_DETAILS
|
||||||
SCHED_TIME BIGINT(13) NOT NULL,
|
-- ----------------------------
|
||||||
PRIORITY INTEGER NOT NULL,
|
BEGIN;
|
||||||
STATE VARCHAR(16) NOT NULL,
|
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000037400104A4F425F48414E444C45525F4E414D457400187379735573657253657373696F6E54696D656F75744A6F627800);
|
||||||
JOB_NAME VARCHAR(190) NULL,
|
COMMIT;
|
||||||
JOB_GROUP VARCHAR(190) NULL,
|
|
||||||
IS_NONCONCURRENT VARCHAR(1) NULL,
|
-- ----------------------------
|
||||||
REQUESTS_RECOVERY VARCHAR(1) NULL,
|
-- Table structure for QRTZ_LOCKS
|
||||||
PRIMARY KEY (SCHED_NAME,ENTRY_ID))
|
-- ----------------------------
|
||||||
ENGINE=InnoDB;
|
DROP TABLE IF EXISTS `QRTZ_LOCKS`;
|
||||||
|
CREATE TABLE `QRTZ_LOCKS` (
|
||||||
CREATE TABLE QRTZ_SCHEDULER_STATE (
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
`LOCK_NAME` varchar(40) NOT NULL,
|
||||||
INSTANCE_NAME VARCHAR(190) NOT NULL,
|
PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
|
||||||
LAST_CHECKIN_TIME BIGINT(13) NOT NULL,
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
CHECKIN_INTERVAL BIGINT(13) NOT NULL,
|
|
||||||
PRIMARY KEY (SCHED_NAME,INSTANCE_NAME))
|
-- ----------------------------
|
||||||
ENGINE=InnoDB;
|
-- Records of QRTZ_LOCKS
|
||||||
|
-- ----------------------------
|
||||||
CREATE TABLE QRTZ_LOCKS (
|
BEGIN;
|
||||||
SCHED_NAME VARCHAR(120) NOT NULL,
|
INSERT INTO `QRTZ_LOCKS` VALUES ('schedulerName', 'STATE_ACCESS');
|
||||||
LOCK_NAME VARCHAR(40) NOT NULL,
|
INSERT INTO `QRTZ_LOCKS` VALUES ('schedulerName', 'TRIGGER_ACCESS');
|
||||||
PRIMARY KEY (SCHED_NAME,LOCK_NAME))
|
COMMIT;
|
||||||
ENGINE=InnoDB;
|
|
||||||
|
-- ----------------------------
|
||||||
CREATE INDEX IDX_QRTZ_J_REQ_RECOVERY ON QRTZ_JOB_DETAILS(SCHED_NAME,REQUESTS_RECOVERY);
|
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
|
||||||
CREATE INDEX IDX_QRTZ_J_GRP ON QRTZ_JOB_DETAILS(SCHED_NAME,JOB_GROUP);
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
|
||||||
CREATE INDEX IDX_QRTZ_T_J ON QRTZ_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
|
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
|
||||||
CREATE INDEX IDX_QRTZ_T_JG ON QRTZ_TRIGGERS(SCHED_NAME,JOB_GROUP);
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
CREATE INDEX IDX_QRTZ_T_C ON QRTZ_TRIGGERS(SCHED_NAME,CALENDAR_NAME);
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
CREATE INDEX IDX_QRTZ_T_G ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
|
||||||
CREATE INDEX IDX_QRTZ_T_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE);
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
CREATE INDEX IDX_QRTZ_T_N_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE);
|
|
||||||
CREATE INDEX IDX_QRTZ_T_N_G_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE);
|
-- ----------------------------
|
||||||
CREATE INDEX IDX_QRTZ_T_NEXT_FIRE_TIME ON QRTZ_TRIGGERS(SCHED_NAME,NEXT_FIRE_TIME);
|
-- Records of QRTZ_PAUSED_TRIGGER_GRPS
|
||||||
CREATE INDEX IDX_QRTZ_T_NFT_ST ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME);
|
-- ----------------------------
|
||||||
CREATE INDEX IDX_QRTZ_T_NFT_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME);
|
BEGIN;
|
||||||
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE);
|
COMMIT;
|
||||||
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE_GRP ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE);
|
|
||||||
|
-- ----------------------------
|
||||||
CREATE INDEX IDX_QRTZ_FT_TRIG_INST_NAME ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME);
|
-- Table structure for QRTZ_SCHEDULER_STATE
|
||||||
CREATE INDEX IDX_QRTZ_FT_INST_JOB_REQ_RCVRY ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY);
|
-- ----------------------------
|
||||||
CREATE INDEX IDX_QRTZ_FT_J_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
|
DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
|
||||||
CREATE INDEX IDX_QRTZ_FT_JG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_GROUP);
|
CREATE TABLE `QRTZ_SCHEDULER_STATE` (
|
||||||
CREATE INDEX IDX_QRTZ_FT_T_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP);
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
CREATE INDEX IDX_QRTZ_FT_TG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
|
`INSTANCE_NAME` varchar(190) NOT NULL,
|
||||||
|
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
|
||||||
commit;
|
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
|
||||||
|
PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
|
||||||
-- 初始化默认任务 用户 Session 超时 Job
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
INSERT INTO QRTZ_JOB_DETAILS VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 'cn.iocoder.dashboard.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000047400104A4F425F48414E444C45525F4E414D457400187379735573657253657373696F6E54696D656F75744A6F627800);
|
|
||||||
commit;
|
-- ----------------------------
|
||||||
INSERT INTO QRTZ_TRIGGERS VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 1615706340000, 1615706280000, 5, 'WAITING', 'CRON', 1615706125000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000007D074000F4A4F425F52455452595F434F554E547371007E0009000000037800);
|
-- Records of QRTZ_SCHEDULER_STATE
|
||||||
commit;
|
-- ----------------------------
|
||||||
INSERT INTO QRTZ_CRON_TRIGGERS VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', '0 * * * * ? *', 'Asia/Shanghai');
|
BEGIN;
|
||||||
commit;
|
INSERT INTO `QRTZ_SCHEDULER_STATE` VALUES ('schedulerName', 'Yunai1620010117445', 1620010210071, 15000);
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for QRTZ_SIMPLE_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
|
||||||
|
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
|
||||||
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
|
`REPEAT_COUNT` bigint(7) NOT NULL,
|
||||||
|
`REPEAT_INTERVAL` bigint(12) NOT NULL,
|
||||||
|
`TIMES_TRIGGERED` bigint(10) NOT NULL,
|
||||||
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
|
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of QRTZ_SIMPLE_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
BEGIN;
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for QRTZ_SIMPROP_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
|
||||||
|
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
|
||||||
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
|
`STR_PROP_1` varchar(512) DEFAULT NULL,
|
||||||
|
`STR_PROP_2` varchar(512) DEFAULT NULL,
|
||||||
|
`STR_PROP_3` varchar(512) DEFAULT NULL,
|
||||||
|
`INT_PROP_1` int(11) DEFAULT NULL,
|
||||||
|
`INT_PROP_2` int(11) DEFAULT NULL,
|
||||||
|
`LONG_PROP_1` bigint(20) DEFAULT NULL,
|
||||||
|
`LONG_PROP_2` bigint(20) DEFAULT NULL,
|
||||||
|
`DEC_PROP_1` decimal(13,4) DEFAULT NULL,
|
||||||
|
`DEC_PROP_2` decimal(13,4) DEFAULT NULL,
|
||||||
|
`BOOL_PROP_1` varchar(1) DEFAULT NULL,
|
||||||
|
`BOOL_PROP_2` varchar(1) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
|
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of QRTZ_SIMPROP_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
BEGIN;
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for QRTZ_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
|
||||||
|
CREATE TABLE `QRTZ_TRIGGERS` (
|
||||||
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
|
`TRIGGER_NAME` varchar(190) NOT NULL,
|
||||||
|
`TRIGGER_GROUP` varchar(190) NOT NULL,
|
||||||
|
`JOB_NAME` varchar(190) NOT NULL,
|
||||||
|
`JOB_GROUP` varchar(190) NOT NULL,
|
||||||
|
`DESCRIPTION` varchar(250) DEFAULT NULL,
|
||||||
|
`NEXT_FIRE_TIME` bigint(13) DEFAULT NULL,
|
||||||
|
`PREV_FIRE_TIME` bigint(13) DEFAULT NULL,
|
||||||
|
`PRIORITY` int(11) DEFAULT NULL,
|
||||||
|
`TRIGGER_STATE` varchar(16) NOT NULL,
|
||||||
|
`TRIGGER_TYPE` varchar(8) NOT NULL,
|
||||||
|
`START_TIME` bigint(13) NOT NULL,
|
||||||
|
`END_TIME` bigint(13) DEFAULT NULL,
|
||||||
|
`CALENDAR_NAME` varchar(190) DEFAULT NULL,
|
||||||
|
`MISFIRE_INSTR` smallint(2) DEFAULT NULL,
|
||||||
|
`JOB_DATA` blob,
|
||||||
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
|
KEY `IDX_QRTZ_T_J` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
||||||
|
KEY `IDX_QRTZ_T_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
||||||
|
KEY `IDX_QRTZ_T_C` (`SCHED_NAME`,`CALENDAR_NAME`),
|
||||||
|
KEY `IDX_QRTZ_T_G` (`SCHED_NAME`,`TRIGGER_GROUP`),
|
||||||
|
KEY `IDX_QRTZ_T_STATE` (`SCHED_NAME`,`TRIGGER_STATE`),
|
||||||
|
KEY `IDX_QRTZ_T_N_STATE` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
||||||
|
KEY `IDX_QRTZ_T_N_G_STATE` (`SCHED_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
||||||
|
KEY `IDX_QRTZ_T_NEXT_FIRE_TIME` (`SCHED_NAME`,`NEXT_FIRE_TIME`),
|
||||||
|
KEY `IDX_QRTZ_T_NFT_ST` (`SCHED_NAME`,`TRIGGER_STATE`,`NEXT_FIRE_TIME`),
|
||||||
|
KEY `IDX_QRTZ_T_NFT_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`),
|
||||||
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_STATE`),
|
||||||
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
||||||
|
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of QRTZ_TRIGGERS
|
||||||
|
-- ----------------------------
|
||||||
|
BEGIN;
|
||||||
|
INSERT INTO `QRTZ_TRIGGERS` VALUES ('schedulerName', 'sysUserSessionTimeoutJob', 'DEFAULT', 'sysUserSessionTimeoutJob', 'DEFAULT', NULL, 1620010260000, 1620010200000, 5, 'WAITING', 'CRON', 1613649236000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000007D074000F4A4F425F52455452595F434F554E547371007E0009000000037800);
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user