activiti.db2.upgradestep.514.to.515.history.sql 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. alter table ACT_HI_TASKINST
  2. add CATEGORY_ varchar(255);
  3. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_TASKINST');
  4. drop index ACT_UNIQ_HI_BUS_KEY;
  5. alter table ACT_HI_VARINST
  6. add CREATE_TIME_ timestamp;
  7. alter table ACT_HI_VARINST
  8. add LAST_UPDATED_TIME_ timestamp;
  9. -- DB2 *cannot* drop columns. Yes, this is 2013.
  10. -- This means that for DB2 the columns will remain as they are (they won't be used)
  11. -- alter table ACT_HI_PROCINST drop colum UNI_BUSINESS_KEY;
  12. -- alter table ACT_HI_PROCINST drop colum UNI_PROC_DEF_ID;
  13. -- Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_PROCINST');
  14. alter table ACT_HI_PROCINST
  15. add TENANT_ID_ varchar(255) default '';
  16. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_PROCINST');
  17. alter table ACT_HI_ACTINST
  18. add TENANT_ID_ varchar(255) default '';
  19. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_ACTINST');
  20. alter table ACT_HI_TASKINST
  21. add TENANT_ID_ varchar(255) default '';
  22. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_TASKINST');
  23. alter table ACT_HI_ACTINST alter column ASSIGNEE_ SET DATA TYPE varchar(255);
  24. Call Sysproc.admin_cmd ('REORG TABLE ACT_HI_ACTINST');