|
|
@@ -110,10 +110,26 @@ 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, 'ruoyi-system-executor', '示例执行器', 0, NULL, '2018-11-03 22:21:31' );
|
|
|
+INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1, 'ruoyi-job-executor', '示例执行器', 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`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`) 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_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 (2, 1, '多服务任务', '2022-02-17 12:21:31', '2022-02-17 12:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'multiServiceHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2022-02-17 12: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');
|
|
|
|
|
|
+-- for AT mode you must to init this sql for you business database. the seata server not need it.
|
|
|
+CREATE TABLE IF NOT EXISTS `undo_log`
|
|
|
+(
|
|
|
+ `branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id',
|
|
|
+ `xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id',
|
|
|
+ `context` VARCHAR(128) NOT NULL COMMENT 'undo_log context,such as serialization',
|
|
|
+ `rollback_info` LONGBLOB NOT NULL COMMENT 'rollback info',
|
|
|
+ `log_status` INT(11) NOT NULL COMMENT '0:normal status,1:defense status',
|
|
|
+ `log_created` DATETIME(6) NOT NULL COMMENT 'create datetime',
|
|
|
+ `log_modified` DATETIME(6) NOT NULL COMMENT 'modify datetime',
|
|
|
+ UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`)
|
|
|
+) ENGINE = InnoDB
|
|
|
+ AUTO_INCREMENT = 1
|
|
|
+ DEFAULT CHARSET = utf8mb4 COMMENT ='AT transaction mode undo table';
|
|
|
+
|
|
|
commit;
|
|
|
|