activiti.db2.upgradestep.58.to.59.engine.sql 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. alter table ACT_RU_EXECUTION
  2. add SUSPENSION_STATE_ integer;
  3. alter table ACT_RE_PROCDEF
  4. add SUSPENSION_STATE_ integer;
  5. alter table ACT_RE_PROCDEF
  6. add REV_ integer;
  7. update ACT_RE_PROCDEF set REV_ = 1;
  8. update ACT_RE_PROCDEF set SUSPENSION_STATE_ = 1;
  9. update ACT_RU_EXECUTION set SUSPENSION_STATE_ = 1;
  10. create table ACT_RU_EVENT_SUBSCR (
  11. ID_ varchar(64) not null,
  12. REV_ integer,
  13. EVENT_TYPE_ varchar(255) not null,
  14. EVENT_NAME_ varchar(255),
  15. EXECUTION_ID_ varchar(64),
  16. PROC_INST_ID_ varchar(64),
  17. ACTIVITY_ID_ varchar(64),
  18. CONFIGURATION_ varchar(255),
  19. CREATED_ timestamp not null,
  20. primary key (ID_)
  21. );
  22. create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
  23. alter table ACT_RU_EVENT_SUBSCR
  24. add constraint ACT_FK_EVENT_EXEC
  25. foreign key (EXECUTION_ID_)
  26. references ACT_RU_EXECUTION(ID_);
  27. alter table ACT_RU_EXECUTION
  28. add IS_EVENT_SCOPE_ smallint check(IS_EVENT_SCOPE_ in (1,0));
  29. update ACT_RU_EXECUTION set IS_EVENT_SCOPE_ = 0;
  30. alter table ACT_HI_PROCINST
  31. add DELETE_REASON_ varchar(4000);
  32. alter table ACT_GE_BYTEARRAY
  33. add GENERATED_ smallint check(GENERATED_ in (1,0));
  34. update ACT_GE_BYTEARRAY set GENERATED_ = 0;