activiti.h2.upgradestep.58.to.59.engine.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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;
  27. alter table ACT_RU_EXECUTION
  28. add IS_EVENT_SCOPE_ bit;
  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_ bit;
  34. update ACT_GE_BYTEARRAY set GENERATED_ = 0;