Activiti6.x删除外键

sql脚本:

-- ----------------------------
-- 删除activiti的外键
-- ----------------------------

ALTER TABLE `hl-act`.`act_ru_deadletter_job` DROP FOREIGN KEY `ACT_FK_DEADLETTER_JOB_EXCEPTION`;
ALTER TABLE `hl-act`.`act_ru_deadletter_job` DROP FOREIGN KEY `ACT_FK_DEADLETTER_JOB_EXECUTION`;
ALTER TABLE `hl-act`.`act_ru_deadletter_job` DROP FOREIGN KEY `ACT_FK_DEADLETTER_JOB_PROC_DEF`;
ALTER TABLE `hl-act`.`act_ru_deadletter_job` DROP FOREIGN KEY `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE`;

ALTER TABLE `hl-act`.`act_ru_event_subscr` DROP FOREIGN KEY `ACT_FK_EVENT_EXEC`;

ALTER TABLE `hl-act`.`act_ru_execution` DROP FOREIGN KEY `ACT_FK_EXE_PARENT`;
ALTER TABLE `hl-act`.`act_ru_execution` DROP FOREIGN KEY `ACT_FK_EXE_PROCDEF`;
ALTER TABLE `hl-act`.`act_ru_execution` DROP FOREIGN KEY `ACT_FK_EXE_PROCINST`;
ALTER TABLE `hl-act`.`act_ru_execution` DROP FOREIGN KEY `ACT_FK_EXE_SUPER`;

ALTER TABLE `hl-act`.`act_ru_identitylink` DROP FOREIGN KEY `ACT_FK_ATHRZ_PROCEDEF`;
ALTER TABLE `hl-act`.`act_ru_identitylink` DROP FOREIGN KEY `ACT_FK_IDL_PROCINST`;
ALTER TABLE `hl-act`.`act_ru_identitylink` DROP FOREIGN KEY `ACT_FK_TSKASS_TASK`;

ALTER TABLE `hl-act`.`act_ru_job` DROP FOREIGN KEY `ACT_FK_JOB_EXCEPTION`;
ALTER TABLE `hl-act`.`act_ru_job` DROP FOREIGN KEY `ACT_FK_JOB_EXECUTION`;
ALTER TABLE `hl-act`.`act_ru_job` DROP FOREIGN KEY `ACT_FK_JOB_PROC_DEF`;
ALTER TABLE `hl-act`.`act_ru_job` DROP FOREIGN KEY `ACT_FK_JOB_PROCESS_INSTANCE`;

ALTER TABLE `hl-act`.`act_ru_suspended_job` DROP FOREIGN KEY `ACT_FK_SUSPENDED_JOB_EXCEPTION`;
ALTER TABLE `hl-act`.`act_ru_suspended_job` DROP FOREIGN KEY `ACT_FK_SUSPENDED_JOB_EXECUTION`;
ALTER TABLE `hl-act`.`act_ru_suspended_job` DROP FOREIGN KEY `ACT_FK_SUSPENDED_JOB_PROC_DEF`;
ALTER TABLE `hl-act`.`act_ru_suspended_job` DROP FOREIGN KEY `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE`;

ALTER TABLE `hl-act`.`act_ru_task` DROP FOREIGN KEY `ACT_FK_TASK_EXE`;
ALTER TABLE `hl-act`.`act_ru_task` DROP FOREIGN KEY `ACT_FK_TASK_PROCDEF`;
ALTER TABLE `hl-act`.`act_ru_task` DROP FOREIGN KEY `ACT_FK_TASK_PROCINST`;

ALTER TABLE `hl-act`.`act_ru_timer_job` DROP FOREIGN KEY `ACT_FK_TIMER_JOB_EXCEPTION`;
ALTER TABLE `hl-act`.`act_ru_timer_job` DROP FOREIGN KEY `ACT_FK_TIMER_JOB_EXECUTION`;
ALTER TABLE `hl-act`.`act_ru_timer_job` DROP FOREIGN KEY `ACT_FK_TIMER_JOB_PROC_DEF`;
ALTER TABLE `hl-act`.`act_ru_timer_job` DROP FOREIGN KEY `ACT_FK_TIMER_JOB_PROCESS_INSTANCE`;

ALTER TABLE `hl-act`.`act_ru_variable` DROP FOREIGN KEY `ACT_FK_VAR_BYTEARRAY`;
ALTER TABLE `hl-act`.`act_ru_variable` DROP FOREIGN KEY `ACT_FK_VAR_EXE`;
ALTER TABLE `hl-act`.`act_ru_variable` DROP FOREIGN KEY `ACT_FK_VAR_PROCINST`;

上一篇:2021-07-31


下一篇:2021-10-13