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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. alter table ACT_RE_PROCDEF
  2. alter column KEY_ set not null;
  3. alter table ACT_RE_PROCDEF
  4. alter column VERSION_ set not null;
  5. alter table ACT_RE_DEPLOYMENT
  6. add CATEGORY_ varchar(255);
  7. alter table ACT_RE_PROCDEF
  8. add DESCRIPTION_ varchar(4000);
  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. alter table ACT_RU_TASK
  14. add SUSPENSION_STATE_ integer;
  15. update ACT_RU_TASK set SUSPENSION_STATE_ = 1;
  16. create table ACT_RE_MODEL (
  17. ID_ varchar(64) not null,
  18. REV_ integer,
  19. NAME_ varchar(255),
  20. KEY_ varchar(255),
  21. CATEGORY_ varchar(255),
  22. CREATE_TIME_ timestamp,
  23. LAST_UPDATE_TIME_ timestamp,
  24. VERSION_ integer,
  25. META_INFO_ varchar(4000),
  26. DEPLOYMENT_ID_ varchar(64),
  27. EDITOR_SOURCE_VALUE_ID_ varchar(64),
  28. EDITOR_SOURCE_EXTRA_VALUE_ID_ varchar(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_ varchar(64);
  49. update ACT_GE_PROPERTY set VALUE_ = '5.11' where NAME_ = 'schema.version';