activiti.mssql.upgradestep.510.to.511.history.sql 909 B

1234567891011121314151617181920212223242526272829303132
  1. create table ACT_HI_VARINST (
  2. ID_ nvarchar(64) not null,
  3. PROC_INST_ID_ nvarchar(64),
  4. EXECUTION_ID_ nvarchar(64),
  5. TASK_ID_ nvarchar(64),
  6. NAME_ nvarchar(255) not null,
  7. VAR_TYPE_ nvarchar(100),
  8. REV_ int,
  9. BYTEARRAY_ID_ nvarchar(64),
  10. DOUBLE_ double precision,
  11. LONG_ numeric(19,0),
  12. TEXT_ nvarchar(4000),
  13. TEXT2_ nvarchar(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_ nvarchar(64);
  20. alter table ACT_HI_ACTINST
  21. add CALL_PROC_INST_ID_ nvarchar(64);
  22. alter table ACT_HI_DETAIL
  23. alter column PROC_INST_ID_ nvarchar(64) null;
  24. alter table ACT_HI_DETAIL
  25. alter column EXECUTION_ID_ nvarchar(64) null;
  26. create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);