activiti.mysql.upgradestep.510.to.511.engine.sql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. alter table ACT_RE_PROCDEF
  2. MODIFY KEY_ varchar(255) not null;
  3. alter table ACT_RE_PROCDEF
  4. MODIFY VERSION_ integer not null;
  5. -- https://activiti.atlassian.net/browse/ACT-1424
  6. alter table ACT_RU_JOB
  7. MODIFY LOCK_EXP_TIME_ timestamp null;
  8. alter table ACT_RE_DEPLOYMENT
  9. add CATEGORY_ varchar(255);
  10. alter table ACT_RE_PROCDEF
  11. add DESCRIPTION_ varchar(4000);
  12. alter table ACT_RU_TASK
  13. add SUSPENSION_STATE_ integer;
  14. update ACT_RU_TASK set SUSPENSION_STATE_ = 1;
  15. alter table ACT_RU_EXECUTION
  16. add constraint ACT_FK_EXE_PROCDEF
  17. foreign key (PROC_DEF_ID_)
  18. references ACT_RE_PROCDEF (ID_);
  19. create table ACT_RE_MODEL (
  20. ID_ varchar(64) not null,
  21. REV_ integer,
  22. NAME_ varchar(255),
  23. KEY_ varchar(255),
  24. CATEGORY_ varchar(255),
  25. CREATE_TIME_ timestamp null,
  26. LAST_UPDATE_TIME_ timestamp null,
  27. VERSION_ integer,
  28. META_INFO_ varchar(4000),
  29. DEPLOYMENT_ID_ varchar(64),
  30. EDITOR_SOURCE_VALUE_ID_ varchar(64),
  31. EDITOR_SOURCE_EXTRA_VALUE_ID_ varchar(64),
  32. primary key (ID_)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
  34. alter table ACT_RE_MODEL
  35. add constraint ACT_FK_MODEL_SOURCE
  36. foreign key (EDITOR_SOURCE_VALUE_ID_)
  37. references ACT_GE_BYTEARRAY (ID_);
  38. alter table ACT_RE_MODEL
  39. add constraint ACT_FK_MODEL_SOURCE_EXTRA
  40. foreign key (EDITOR_SOURCE_EXTRA_VALUE_ID_)
  41. references ACT_GE_BYTEARRAY (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';