activiti.oracle.upgradestep.58.to.59.engine.sql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_ NVARCHAR2(64) not null,
  12. REV_ integer,
  13. EVENT_TYPE_ NVARCHAR2(255) not null,
  14. EVENT_NAME_ NVARCHAR2(255),
  15. EXECUTION_ID_ NVARCHAR2(64),
  16. PROC_INST_ID_ NVARCHAR2(64),
  17. ACTIVITY_ID_ NVARCHAR2(64),
  18. CONFIGURATION_ NVARCHAR2(255),
  19. CREATED_ TIMESTAMP(6) 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 IS_EVENT_SCOPE_ NUMBER(1,0) CHECK (IS_EVENT_SCOPE_ IN (1,0));
  30. update ACT_RU_EXECUTION set IS_EVENT_SCOPE_ = 0;
  31. alter table ACT_HI_PROCINST
  32. add DELETE_REASON_ NVARCHAR2(2000);
  33. alter table ACT_GE_BYTEARRAY
  34. add GENERATED_ NUMBER(1,0) CHECK (GENERATED_ IN (1,0));
  35. update ACT_GE_BYTEARRAY set GENERATED_ = 0;