activiti.db2.upgradestep.514.to.515.engine.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. alter table ACT_RU_TASK
  2. add CATEGORY_ varchar(255);
  3. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_TASK');
  4. drop index ACT_UNIQ_RU_BUS_KEY;
  5. -- DB2 *cannot* drop columns. Yes, this is 2013.
  6. -- This means that for DB2 the columns will remain as they are (they won't be used)
  7. -- alter table ACT_RU_EXECUTION drop colum UNI_BUSINESS_KEY;
  8. -- alter table ACT_RU_EXECUTION drop colum UNI_PROC_DEF_ID;
  9. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_EXECUTION');
  10. alter table ACT_RE_DEPLOYMENT
  11. add TENANT_ID_ varchar(255) default '';
  12. Call Sysproc.admin_cmd ('REORG TABLE ACT_RE_DEPLOYMENT');
  13. alter table ACT_RE_PROCDEF
  14. add TENANT_ID_ varchar(255) not null default '';
  15. Call Sysproc.admin_cmd ('REORG TABLE ACT_RE_PROCDEF');
  16. alter table ACT_RU_EXECUTION
  17. add TENANT_ID_ varchar(255) default '';
  18. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_EXECUTION');
  19. alter table ACT_RU_TASK
  20. add TENANT_ID_ varchar(255) default '';
  21. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_TASK');
  22. alter table ACT_RU_JOB
  23. add TENANT_ID_ varchar(255) default '';
  24. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_JOB');
  25. alter table ACT_RE_MODEL
  26. add TENANT_ID_ varchar(255) default '';
  27. Call Sysproc.admin_cmd ('REORG TABLE ACT_RE_MODEL');
  28. alter table ACT_RU_EVENT_SUBSCR
  29. add TENANT_ID_ varchar(255) default '';
  30. alter table ACT_RU_EVENT_SUBSCR
  31. add PROC_DEF_ID_ varchar(64);
  32. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_EVENT_SUBSCR');
  33. alter table ACT_RE_PROCDEF
  34. drop unique ACT_UNIQ_PROCDEF;
  35. alter table ACT_RE_PROCDEF
  36. add constraint ACT_UNIQ_PROCDEF
  37. unique (KEY_,VERSION_, TENANT_ID_);
  38. Call Sysproc.admin_cmd ('REORG TABLE ACT_RE_PROCDEF');
  39. update ACT_GE_PROPERTY set VALUE_ = '5.15' where NAME_ = 'schema.version';