mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
build: flyway 文件结构
This commit is contained in:
parent
46d66464ce
commit
57bd98888c
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,126 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '用户ID',
|
||||
`name` VARCHAR(64) NOT NULL COMMENT '用户名',
|
||||
`email` VARCHAR(64) NOT NULL COMMENT '用户邮箱',
|
||||
`password` VARCHAR(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户密码',
|
||||
`status` VARCHAR(50) NOT NULL COMMENT '用户状态,启用或禁用',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`language` VARCHAR(30) DEFAULT NULL COMMENT '语言',
|
||||
`last_workspace_id` VARCHAR(50) DEFAULT NULL COMMENT '当前工作空间ID',
|
||||
`phone` VARCHAR(50) DEFAULT NULL COMMENT '手机号',
|
||||
`source` VARCHAR(50) NOT NULL COMMENT '来源:LOCAL OIDC CAS',
|
||||
`last_project_id` VARCHAR(50) DEFAULT NULL COMMENT '当前项目ID',
|
||||
`create_user` VARCHAR(100) NOT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_name` (`name`),
|
||||
KEY `idx_email` (`email`),
|
||||
KEY `idx_create_time` (`create_time`),
|
||||
KEY `idx_update_time` (`update_time`),
|
||||
KEY `idx_workspace_id` (`last_workspace_id`),
|
||||
KEY `idx_project_id` (`last_project_id`),
|
||||
KEY `idx_create_user` (`create_user`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_extend`
|
||||
(
|
||||
`user_id` VARCHAR(50) NOT NULL COMMENT '用户ID',
|
||||
`platform_info` BLOB COMMENT '其他平台对接信息',
|
||||
`selenium_server` VARCHAR(255) DEFAULT NULL COMMENT 'UI本地调试地址',
|
||||
PRIMARY KEY (`user_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户扩展';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_key`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT 'user_key ID',
|
||||
`create_user` VARCHAR(50) NOT NULL COMMENT '用户ID',
|
||||
`access_key` VARCHAR(50) NOT NULL COMMENT 'access_key',
|
||||
`secret_key` VARCHAR(50) NOT NULL COMMENT 'secret key',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`status` VARCHAR(10) DEFAULT NULL COMMENT '状态',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_ak` (`access_key`),
|
||||
KEY `idx_create_user` (`create_user`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户api key';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_role`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '组ID',
|
||||
`name` VARCHAR(64) NOT NULL COMMENT '组名称',
|
||||
`description` VARCHAR(100) DEFAULT NULL COMMENT '描述',
|
||||
`system` BIT(1) NOT NULL COMMENT '是否是系统用户组',
|
||||
`type` VARCHAR(20) NOT NULL COMMENT '所属类型',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`create_user` VARCHAR(64) NOT NULL COMMENT '创建人(操作人)',
|
||||
`scope_id` VARCHAR(64) NOT NULL COMMENT '应用范围',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_group_name` (`name`),
|
||||
KEY `idx_create_time` (`create_time`),
|
||||
KEY `idx_create_user` (`create_user`),
|
||||
KEY `idx_scope_id` (`scope_id`),
|
||||
KEY `idx_update_time` (`update_time`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户组';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_role_permission`
|
||||
(
|
||||
`id` VARCHAR(64) NOT NULL,
|
||||
`role_id` VARCHAR(64) NOT NULL COMMENT '用户组ID',
|
||||
`permission_id` VARCHAR(128) NOT NULL COMMENT '权限ID',
|
||||
`module_id` VARCHAR(64) NOT NULL COMMENT '功能菜单',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_group_id` (`role_id`),
|
||||
KEY `idx_permission_id` (`permission_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户组权限';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_role_relation`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '用户组关系ID',
|
||||
`user_id` VARCHAR(50) NOT NULL COMMENT '用户ID',
|
||||
`role_id` VARCHAR(50) NOT NULL COMMENT '组ID',
|
||||
`source_id` VARCHAR(50) NOT NULL COMMENT '工作空间或项目ID',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_user_id` (`user_id`),
|
||||
KEY `idx_group_id` (`role_id`),
|
||||
KEY `idx_source_id` (`source_id`),
|
||||
KEY `idx_create_time` (`create_time`),
|
||||
KEY `idx_update_time` (`update_time`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='用户组关系';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `workspace`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '工作空间ID',
|
||||
`name` VARCHAR(100) NOT NULL COMMENT '工作空间名称',
|
||||
`description` VARCHAR(255) DEFAULT NULL COMMENT '描述',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`create_user` VARCHAR(50) NOT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_name` (`name`),
|
||||
KEY `idx_create_user` (`create_user`),
|
||||
KEY `idx_create_time` (`create_time`),
|
||||
KEY `idx_update_time` (`update_time`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='工作空间';
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -1,31 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `project`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '项目ID',
|
||||
`workspace_id` VARCHAR(50) NOT NULL COMMENT '工作空间ID',
|
||||
`name` VARCHAR(64) NOT NULL COMMENT '项目名称',
|
||||
`description` VARCHAR(255) COMMENT '项目描述',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`create_user` VARCHAR(100) COMMENT '创建人',
|
||||
`system_id` VARCHAR(50) COMMENT '',
|
||||
PRIMARY KEY (id)
|
||||
) COMMENT = '项目';
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '用户ID',
|
||||
`name` VARCHAR(64) NOT NULL COMMENT '用户名',
|
||||
`email` VARCHAR(64) NOT NULL COMMENT '用户邮箱',
|
||||
`password` VARCHAR(256) COMMENT '用户密码',
|
||||
`status` VARCHAR(50) NOT NULL COMMENT '用户状态,启用或禁用',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`language` VARCHAR(30) COMMENT '语言',
|
||||
`last_workspace_id` VARCHAR(50) COMMENT '当前工作空间ID',
|
||||
`phone` VARCHAR(50) COMMENT '手机号',
|
||||
`source` VARCHAR(50) NOT NULL COMMENT '来源:LOCAL OIDC CAS',
|
||||
`last_project_id` VARCHAR(50) COMMENT '当前项目ID',
|
||||
`create_user` VARCHAR(100) NOT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (id)
|
||||
) COMMENT = '用户';
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,77 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
CREATE TABLE `project`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '项目ID',
|
||||
`workspace_id` VARCHAR(50) NOT NULL COMMENT '工作空间ID',
|
||||
`name` VARCHAR(64) NOT NULL COMMENT '项目名称',
|
||||
`description` VARCHAR(255) DEFAULT NULL COMMENT '项目描述',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`update_time` BIGINT NOT NULL COMMENT '更新时间',
|
||||
`create_user` VARCHAR(100) DEFAULT NULL COMMENT '创建人',
|
||||
`system_id` VARCHAR(50) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `project_workspace_id_index` (`workspace_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='项目';
|
||||
|
||||
CREATE TABLE `project_application`
|
||||
(
|
||||
`project_id` VARCHAR(50) NOT NULL COMMENT '项目ID',
|
||||
`type` VARCHAR(50) NOT NULL COMMENT '配置项',
|
||||
`type_value` VARCHAR(255) DEFAULT NULL COMMENT '配置值',
|
||||
PRIMARY KEY (`project_id`, `type`),
|
||||
UNIQUE KEY `project_application_pk` (`project_id`, `type`),
|
||||
KEY `project_application_project_id_index` (`project_id`),
|
||||
KEY `project_application_type` (`type`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='项目应用';
|
||||
|
||||
CREATE TABLE `project_extend`
|
||||
(
|
||||
`project_id` VARCHAR(50) NOT NULL COMMENT '项目ID',
|
||||
`tapd_id` VARCHAR(50) DEFAULT NULL,
|
||||
`jira_key` VARCHAR(50) DEFAULT NULL,
|
||||
`zentao_id` VARCHAR(50) DEFAULT NULL,
|
||||
`azure_devops_id` VARCHAR(50) DEFAULT NULL,
|
||||
`case_template_id` VARCHAR(50) DEFAULT NULL COMMENT '用例模版ID',
|
||||
`azure_filter_id` VARCHAR(50) DEFAULT NULL COMMENT 'azure 过滤需求的 parent workItem ID',
|
||||
`platform` VARCHAR(20) NOT NULL DEFAULT 'Local' COMMENT '项目使用哪个平台的模板',
|
||||
`third_part_template` TINYINT(1) DEFAULT '0' COMMENT '是否使用第三方平台缺陷模板',
|
||||
`version_enable` TINYINT(1) DEFAULT '1' COMMENT '是否开启版本管理',
|
||||
`issue_config` LONGBLOB,
|
||||
`api_template_id` VARCHAR(64) DEFAULT NULL,
|
||||
PRIMARY KEY (`project_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='项目扩展';
|
||||
|
||||
CREATE TABLE `project_version`
|
||||
(
|
||||
`id` VARCHAR(50) NOT NULL COMMENT '版本ID',
|
||||
`project_id` VARCHAR(50) NOT NULL COMMENT '项目ID',
|
||||
`name` VARCHAR(100) NOT NULL COMMENT '版本名称',
|
||||
`description` VARCHAR(200) DEFAULT NULL COMMENT '描述',
|
||||
`status` VARCHAR(20) DEFAULT NULL COMMENT '状态',
|
||||
`latest` TINYINT(1) NOT NULL COMMENT '是否是最新版',
|
||||
`publish_time` BIGINT DEFAULT NULL COMMENT '发布时间',
|
||||
`start_time` BIGINT DEFAULT NULL COMMENT '开始时间',
|
||||
`end_time` BIGINT DEFAULT NULL COMMENT '结束时间',
|
||||
`create_time` BIGINT NOT NULL COMMENT '创建时间',
|
||||
`create_user` VARCHAR(100) NOT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_project_id` (`project_id`),
|
||||
KEY `idx_name` (`name`),
|
||||
KEY `idx_create_time` (`create_time`),
|
||||
KEY `idx_create_user` (`create_user`),
|
||||
KEY `idx_latest` (`latest`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='版本管理';
|
||||
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,190 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- quartz start
|
||||
CREATE TABLE `QRTZ_JOB_DETAILS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`JOB_NAME` VARCHAR(200) NOT NULL,
|
||||
`JOB_GROUP` VARCHAR(200) NOT NULL,
|
||||
`DESCRIPTION` VARCHAR(250) DEFAULT NULL,
|
||||
`JOB_CLASS_NAME` VARCHAR(250) NOT NULL,
|
||||
`IS_DURABLE` VARCHAR(1) NOT NULL,
|
||||
`IS_NONCONCURRENT` VARCHAR(1) NOT NULL,
|
||||
`IS_UPDATE_DATA` VARCHAR(1) NOT NULL,
|
||||
`REQUESTS_RECOVERY` VARCHAR(1) NOT NULL,
|
||||
`JOB_DATA` BLOB,
|
||||
PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`),
|
||||
KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`, `REQUESTS_RECOVERY`),
|
||||
KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`, `JOB_GROUP`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) NOT NULL,
|
||||
`JOB_NAME` VARCHAR(200) NOT NULL,
|
||||
`JOB_GROUP` VARCHAR(200) 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(200) 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
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_BLOB_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) NOT NULL,
|
||||
`BLOB_DATA` BLOB,
|
||||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`),
|
||||
KEY `SCHED_NAME` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`),
|
||||
CONSTRAINT `qrtz_blob_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
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_CALENDARS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`CALENDAR_NAME` VARCHAR(200) NOT NULL,
|
||||
`CALENDAR` BLOB NOT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_CRON_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) NOT NULL,
|
||||
`CRON_EXPRESSION` VARCHAR(120) NOT NULL,
|
||||
`TIME_ZONE_ID` VARCHAR(80) DEFAULT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`),
|
||||
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
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_FIRED_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`ENTRY_ID` VARCHAR(95) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) NOT NULL,
|
||||
`INSTANCE_NAME` VARCHAR(200) NOT NULL,
|
||||
`FIRED_TIME` BIGINT(13) NOT NULL,
|
||||
`SCHED_TIME` BIGINT(13) NOT NULL,
|
||||
`PRIORITY` INT(11) NOT NULL,
|
||||
`STATE` VARCHAR(16) NOT NULL,
|
||||
`JOB_NAME` VARCHAR(200) DEFAULT NULL,
|
||||
`JOB_GROUP` VARCHAR(200) DEFAULT NULL,
|
||||
`IS_NONCONCURRENT` VARCHAR(1) DEFAULT NULL,
|
||||
`REQUESTS_RECOVERY` VARCHAR(1) DEFAULT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`),
|
||||
KEY `IDX_QRTZ_FT_TRIG_INST_NAME` (`SCHED_NAME`, `INSTANCE_NAME`),
|
||||
KEY `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`),
|
||||
KEY `IDX_QRTZ_FT_J_G` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`),
|
||||
KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`, `JOB_GROUP`),
|
||||
KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`),
|
||||
KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`, `TRIGGER_GROUP`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_LOCKS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`LOCK_NAME` VARCHAR(40) NOT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) NOT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_SCHEDULER_STATE`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`INSTANCE_NAME` VARCHAR(200) NOT NULL,
|
||||
`LAST_CHECKIN_TIME` BIGINT(13) NOT NULL,
|
||||
`CHECKIN_INTERVAL` BIGINT(13) NOT NULL,
|
||||
PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) 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
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS`
|
||||
(
|
||||
`SCHED_NAME` VARCHAR(120) NOT NULL,
|
||||
`TRIGGER_NAME` VARCHAR(200) NOT NULL,
|
||||
`TRIGGER_GROUP` VARCHAR(200) 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
|
||||
COLLATE utf8mb4_general_ci;
|
||||
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -0,0 +1,5 @@
|
||||
-- set innodb lock wait timeout
|
||||
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||
|
||||
-- set innodb lock wait timeout to default
|
||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
@ -1 +0,0 @@
|
||||
select database();
|
Loading…
Reference in New Issue
Block a user