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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. alter table ACT_RU_EXECUTION
  2. add SUSPENSION_STATE_ int;
  3. alter table ACT_RE_PROCDEF
  4. add SUSPENSION_STATE_ int;
  5. alter table ACT_RE_PROCDEF
  6. add REV_ int;
  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_ nvarchar(64) not null,
  12. REV_ int,
  13. EVENT_TYPE_ nvarchar(255) not null,
  14. EVENT_NAME_ nvarchar(255),
  15. EXECUTION_ID_ nvarchar(64),
  16. PROC_INST_ID_ nvarchar(64),
  17. ACTIVITY_ID_ nvarchar(64),
  18. CONFIGURATION_ nvarchar(255),
  19. CREATED_ datetime 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_ tinyint;
  29. update ACT_RU_EXECUTION set IS_EVENT_SCOPE_ = 0;
  30. alter table ACT_HI_PROCINST
  31. add DELETE_REASON_ nvarchar(4000);
  32. alter table ACT_GE_BYTEARRAY
  33. add GENERATED_ tinyint;
  34. update ACT_GE_BYTEARRAY set GENERATED_ = 0;