activiti.h2.upgradestep.510.to.511.engine.sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_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_ 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. alter table ACT_RE_MODEL
  32. add constraint ACT_FK_MODEL_SOURCE
  33. foreign key (EDITOR_SOURCE_VALUE_ID_)
  34. references ACT_GE_BYTEARRAY (ID_);
  35. alter table ACT_RE_MODEL
  36. add constraint ACT_FK_MODEL_SOURCE_EXTRA
  37. foreign key (EDITOR_SOURCE_EXTRA_VALUE_ID_)
  38. references ACT_GE_BYTEARRAY (ID_);
  39. alter table ACT_RE_MODEL
  40. add constraint ACT_FK_MODEL_DEPLOYMENT
  41. foreign key (DEPLOYMENT_ID_)
  42. references ACT_RE_DEPLOYMENT (ID_);
  43. delete from ACT_GE_PROPERTY where NAME_ = 'historyLevel';
  44. alter table ACT_RU_JOB
  45. add PROC_DEF_ID_ varchar(64);
  46. update ACT_GE_PROPERTY set VALUE_ = '5.11' where NAME_ = 'schema.version';