activiti 5.22 清库脚本

 项目开发使用 activiti 5.22.0,本地测试时产生了许多测试流程数据,部署时需要清掉这些垃圾数据,但又要保留流程定义及流程模型

        根据官方文档,明确要清空的有 act_hi_  和 act_ru_ 开头的表,但是这些表存在很多外键,于是就需要严格按照顺序来DELETE.

 

以下是清库脚本

DELETE  FROM  `act_hi_attachment`;

DELETE  FROM  `act_hi_comment`;

DELETE  FROM  `act_hi_detail`;

DELETE  FROM  `act_hi_actinst`;

DELETE  FROM  `act_hi_identitylink`;

DELETE  FROM  `act_hi_procinst`;

DELETE  FROM  `act_hi_taskinst`;

DELETE  FROM  `act_hi_varinst`;

DELETE  FROM  `act_ru_identitylink`;

DELETE  FROM  `act_ru_task`;

DELETE  FROM  `act_ru_variable`;

DELETE  FROM  `act_ru_execution` WHERE `PARENT_ID_` IS NOT NULL AND `IS_SCOPE_`=0;

DELETE  FROM  `act_ru_execution` WHERE `PARENT_ID_` IS NOT NULL AND `IS_SCOPE_`=1;

DELETE  FROM  `act_ru_execution`;

 

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值