• 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`;
    
    
  • 相关阅读:
    FastAdmin 开发时对数据库进行版本管理 (非 think-migration)
    使用 mysqldump 备份时的一些参数
    软件开源后可能遇到的问题
    基于 FastAdmin 开发后台流程 (持续更新)
    FastAdmin 怎么把模块设置默认的首页?
    FastAdmin 离线安装 ueditor 出现 rule 错误
    Windows nginx php cgi-fcgi 配置 xdebug
    FastAdmin 插件刷新缓存出现 200 红色提示框解决 always_populate_raw_post_data
    参与开源项目给我带来了什么?
    为什么要求将问题发到社区?
  • 原文地址:https://www.cnblogs.com/zhaoxxnbsp/p/15375582.html
Copyright © 2020-2023  润新知