activiti.db2.upgradestep.59.to.510.engine.sql 745 B

123456789101112131415161718192021222324252627
  1. alter table ACT_RU_IDENTITYLINK
  2. add PROC_DEF_ID_ varchar(64);
  3. create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
  4. create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
  5. alter table ACT_RU_IDENTITYLINK
  6. add constraint ACT_FK_ATHRZ_PROCEDEF
  7. foreign key (PROC_DEF_ID_)
  8. references ACT_RE_PROCDEF (ID_);
  9. alter table ACT_RU_EXECUTION
  10. add CACHED_ENT_STATE_ integer;
  11. update ACT_RU_EXECUTION set CACHED_ENT_STATE_ = 7;
  12. alter table ACT_RE_PROCDEF
  13. alter column KEY_ set not null;
  14. alter table ACT_RE_PROCDEF
  15. alter column VERSION_ set not null;
  16. Call Sysproc.admin_cmd ('REORG TABLE ACT_RE_PROCDEF');
  17. alter table ACT_RE_PROCDEF
  18. add constraint ACT_UNIQ_PROCDEF
  19. unique (KEY_,VERSION_);