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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. alter table ACT_RU_EXECUTION
  2. add column SUSPENSION_STATE_ integer;
  3. alter table ACT_RE_PROCDEF
  4. add column SUSPENSION_STATE_ integer;
  5. alter table ACT_RE_PROCDEF
  6. add column 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. create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
  24. alter table ACT_RU_EVENT_SUBSCR
  25. add constraint ACT_FK_EVENT_EXEC
  26. foreign key (EXECUTION_ID_)
  27. references ACT_RU_EXECUTION(ID_);
  28. alter table ACT_RU_EXECUTION
  29. add column IS_EVENT_SCOPE_ boolean;
  30. update ACT_RU_EXECUTION set IS_EVENT_SCOPE_ = false;
  31. alter table ACT_HI_PROCINST
  32. add DELETE_REASON_ varchar(4000);
  33. alter table ACT_GE_BYTEARRAY
  34. add GENERATED_ boolean;
  35. update ACT_GE_BYTEARRAY set GENERATED_ = false;