activiti.db2.upgradestep.510.to.511.history.sql 996 B

123456789101112131415161718192021222324252627282930313233343536
  1. create table ACT_HI_VARINST (
  2. ID_ varchar(64) not null,
  3. PROC_INST_ID_ varchar(64),
  4. EXECUTION_ID_ varchar(64),
  5. TASK_ID_ varchar(64),
  6. NAME_ varchar(255) not null,
  7. VAR_TYPE_ varchar(100),
  8. REV_ integer,
  9. BYTEARRAY_ID_ varchar(64),
  10. DOUBLE_ double precision,
  11. LONG_ bigint,
  12. TEXT_ varchar(4000),
  13. TEXT2_ varchar(4000),
  14. primary key (ID_)
  15. );
  16. create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
  17. create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
  18. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_VARINST');
  19. alter table ACT_HI_ACTINST
  20. add TASK_ID_ varchar(64);
  21. alter table ACT_HI_ACTINST
  22. add CALL_PROC_INST_ID_ varchar(64);
  23. alter table ACT_HI_DETAIL
  24. alter column PROC_INST_ID_ DROP NOT NULL;
  25. alter table ACT_HI_DETAIL
  26. alter column EXECUTION_ID_ DROP NOT NULL;
  27. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_DETAIL');
  28. create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);