activiti.h2.upgradestep.510.to.511.history.sql 731 B

1234567891011121314151617181920212223242526
  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,
  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. alter table ACT_HI_ACTINST
  19. add TASK_ID_ varchar(64);
  20. alter table ACT_HI_ACTINST
  21. add CALL_PROC_INST_ID_ varchar(64);
  22. create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);