activiti.db2.upgradestep.510.to.511.engine.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. alter table ACT_RE_DEPLOYMENT
  2. add CATEGORY_ varchar(255);
  3. alter table ACT_RE_PROCDEF
  4. add DESCRIPTION_ varchar(4000);
  5. alter table ACT_RU_TASK
  6. add SUSPENSION_STATE_ integer;
  7. Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_TASK');
  8. update ACT_RU_TASK set SUSPENSION_STATE_ = 1;
  9. alter table ACT_RU_EXECUTION
  10. add constraint ACT_FK_EXE_PROCDEF
  11. foreign key (PROC_DEF_ID_)
  12. references ACT_RE_PROCDEF (ID_);
  13. create table ACT_RE_MODEL (
  14. ID_ varchar(64) not null,
  15. REV_ integer,
  16. NAME_ varchar(255),
  17. KEY_ varchar(255),
  18. CATEGORY_ varchar(255),
  19. CREATE_TIME_ timestamp,
  20. LAST_UPDATE_TIME_ timestamp,
  21. VERSION_ integer,
  22. META_INFO_ varchar(4000),
  23. DEPLOYMENT_ID_ varchar(64),
  24. EDITOR_SOURCE_VALUE_ID_ varchar(64),
  25. EDITOR_SOURCE_EXTRA_VALUE_ID_ varchar(64),
  26. primary key (ID_)
  27. );
  28. alter table ACT_RE_MODEL
  29. add constraint ACT_FK_MODEL_SOURCE
  30. foreign key (EDITOR_SOURCE_VALUE_ID_)
  31. references ACT_GE_BYTEARRAY (ID_);
  32. alter table ACT_RE_MODEL
  33. add constraint ACT_FK_MODEL_SOURCE_EXTRA
  34. foreign key (EDITOR_SOURCE_EXTRA_VALUE_ID_)
  35. references ACT_GE_BYTEARRAY (ID_);
  36. alter table ACT_RE_MODEL
  37. add constraint ACT_FK_MODEL_DEPLOYMENT
  38. foreign key (DEPLOYMENT_ID_)
  39. references ACT_RE_DEPLOYMENT (ID_);
  40. delete from ACT_GE_PROPERTY where NAME_ = 'historyLevel';
  41. alter table ACT_RU_JOB
  42. add PROC_DEF_ID_ varchar(64);
  43. update ACT_GE_PROPERTY set VALUE_ = '5.11' where NAME_ = 'schema.version';