activiti.oracle.upgradestep.510.to.511.engine.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. alter table ACT_RE_PROCDEF
  2. modify KEY_ not null;
  3. alter table ACT_RE_PROCDEF
  4. modify VERSION_ not null;
  5. alter table ACT_RE_DEPLOYMENT
  6. add CATEGORY_ NVARCHAR2(255);
  7. alter table ACT_RE_PROCDEF
  8. add DESCRIPTION_ NVARCHAR2(2000);
  9. alter table ACT_RU_TASK
  10. add SUSPENSION_STATE_ INTEGER;
  11. update ACT_RU_TASK set SUSPENSION_STATE_ = 1;
  12. alter table ACT_RU_EXECUTION
  13. add constraint ACT_FK_EXE_PROCDEF
  14. foreign key (PROC_DEF_ID_)
  15. references ACT_RE_PROCDEF (ID_);
  16. create table ACT_RE_MODEL (
  17. ID_ NVARCHAR2(64) not null,
  18. REV_ INTEGER,
  19. NAME_ NVARCHAR2(255),
  20. KEY_ NVARCHAR2(255),
  21. CATEGORY_ NVARCHAR2(255),
  22. CREATE_TIME_ TIMESTAMP(6),
  23. LAST_UPDATE_TIME_ TIMESTAMP(6),
  24. VERSION_ INTEGER,
  25. META_INFO_ NVARCHAR2(2000),
  26. DEPLOYMENT_ID_ NVARCHAR2(64),
  27. EDITOR_SOURCE_VALUE_ID_ NVARCHAR2(64),
  28. EDITOR_SOURCE_EXTRA_VALUE_ID_ NVARCHAR2(64),
  29. primary key (ID_)
  30. );
  31. create index ACT_IDX_MODEL_SOURCE on ACT_RE_MODEL(EDITOR_SOURCE_VALUE_ID_);
  32. alter table ACT_RE_MODEL
  33. add constraint ACT_FK_MODEL_SOURCE
  34. foreign key (EDITOR_SOURCE_VALUE_ID_)
  35. references ACT_GE_BYTEARRAY (ID_);
  36. create index ACT_IDX_MODEL_SOURCE_EXTRA on ACT_RE_MODEL(EDITOR_SOURCE_EXTRA_VALUE_ID_);
  37. alter table ACT_RE_MODEL
  38. add constraint ACT_FK_MODEL_SOURCE_EXTRA
  39. foreign key (EDITOR_SOURCE_EXTRA_VALUE_ID_)
  40. references ACT_GE_BYTEARRAY (ID_);
  41. create index ACT_IDX_MODEL_DEPLOYMENT on ACT_RE_MODEL(DEPLOYMENT_ID_);
  42. alter table ACT_RE_MODEL
  43. add constraint ACT_FK_MODEL_DEPLOYMENT
  44. foreign key (DEPLOYMENT_ID_)
  45. references ACT_RE_DEPLOYMENT (ID_);
  46. delete from ACT_GE_PROPERTY where NAME_ = 'historyLevel';
  47. alter table ACT_RU_JOB
  48. add PROC_DEF_ID_ NVARCHAR2(64);
  49. update ACT_GE_PROPERTY set VALUE_ = '5.11' where NAME_ = 'schema.version';