activiti.mysql55.upgradestep.514.to.515.engine.sql 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # MySQL < 5.6.4 does not support timestamps/dates with millisecond precision.
  2. # This upgrade file lacks the necessary upgrades that are done on a 5.6.4+ installation
  3. # to get millisecond precision.
  4. alter table ACT_RU_TASK
  5. add CATEGORY_ varchar(255);
  6. alter table ACT_RU_EXECUTION drop foreign key ACT_FK_EXE_PROCDEF;
  7. alter table ACT_RU_EXECUTION drop index ACT_UNIQ_RU_BUS_KEY;
  8. alter table ACT_RU_EXECUTION
  9. add constraint ACT_FK_EXE_PROCDEF
  10. foreign key (PROC_DEF_ID_)
  11. references ACT_RE_PROCDEF (ID_);
  12. alter table ACT_RE_DEPLOYMENT
  13. add TENANT_ID_ varchar(255) default '';
  14. alter table ACT_RE_PROCDEF
  15. add TENANT_ID_ varchar(255) default '';
  16. alter table ACT_RU_EXECUTION
  17. add TENANT_ID_ varchar(255) default '';
  18. alter table ACT_RU_TASK
  19. add TENANT_ID_ varchar(255) default '';
  20. alter table ACT_RU_JOB
  21. add TENANT_ID_ varchar(255) default '';
  22. alter table ACT_RE_MODEL
  23. add TENANT_ID_ varchar(255) default '';
  24. alter table ACT_RU_EVENT_SUBSCR
  25. add TENANT_ID_ varchar(255) default '';
  26. alter table ACT_RU_EVENT_SUBSCR
  27. add PROC_DEF_ID_ varchar(64);
  28. alter table ACT_RE_PROCDEF
  29. drop index ACT_UNIQ_PROCDEF;
  30. alter table ACT_RE_PROCDEF
  31. add constraint ACT_UNIQ_PROCDEF
  32. unique (KEY_,VERSION_, TENANT_ID_);
  33. update ACT_GE_PROPERTY set VALUE_ = '5.15' where NAME_ = 'schema.version';