Permalink
Browse files

update activiti upgrade sql

  • Loading branch information...
1 parent 0d0fc62 commit ec17266e4935dcfe6b0ff4548667de87dd6a605c @think-gem think-gem committed Jul 30, 2016
Showing with 1,206 additions and 16,227 deletions.
  1. +48 −6 db/act/create/activiti.db2.create.engine.sql
  2. +4 −0 db/act/create/activiti.db2.create.history.sql
  3. +45 −3 db/act/create/activiti.h2.create.engine.sql
  4. +4 −0 db/act/create/activiti.h2.create.history.sql
  5. +322 −0 db/act/create/activiti.hsql.create.engine.sql
  6. +154 −0 db/act/create/activiti.hsql.create.history.sql
  7. +46 −0 db/act/create/activiti.hsql.create.identity.sql
  8. +49 −6 db/act/create/activiti.mssql.create.engine.sql
  9. +6 −1 db/act/create/activiti.mssql.create.history.sql
  10. +58 −14 db/act/create/activiti.mysql.create.engine.sql
  11. +18 −13 db/act/create/activiti.mysql.create.history.sql
  12. +49 −5 db/act/create/activiti.mysql55.create.engine.sql
  13. +6 −1 db/act/create/activiti.mysql55.create.history.sql
  14. +47 −2 db/act/create/activiti.oracle.create.engine.sql
  15. +4 −0 db/act/create/activiti.oracle.create.history.sql
  16. +49 −6 db/act/create/activiti.postgres.create.engine.sql
  17. +5 −1 db/act/create/activiti.postgres.create.history.sql
  18. +8 −0 db/act/drop/activiti.db2.drop.engine.sql
  19. +1 −0 db/act/drop/activiti.db2.drop.history.sql
  20. +4 −1 db/act/drop/activiti.h2.drop.engine.sql
  21. +2 −0 db/act/drop/activiti.h2.drop.history.sql
  22. +22 −0 db/act/drop/activiti.hsql.drop.engine.sql
  23. +24 −0 db/act/drop/activiti.hsql.drop.history.sql
  24. +4 −0 db/act/drop/activiti.hsql.drop.identity.sql
  25. +5 −0 db/act/drop/activiti.mssql.drop.engine.sql
  26. +1 −0 db/act/drop/activiti.mssql.drop.history.sql
  27. +73 −1 db/act/drop/activiti.mysql.drop.engine.sql
  28. +17 −1 db/act/drop/activiti.mysql.drop.history.sql
  29. +6 −0 db/act/drop/activiti.mysql.drop.identity.sql
  30. +16 −1 db/act/drop/activiti.oracle.drop.engine.sql
  31. +2 −1 db/act/drop/activiti.oracle.drop.history.sql
  32. +2 −0 db/act/drop/activiti.postgres.drop.engine.sql
  33. +1 −0 pom.xml
  34. +15 −7 src/main/java/com/thinkgem/jeesite/modules/act/service/ActModelService.java
  35. +3 −4 src/main/resources/spring-context-activiti.xml
  36. +85 −85 src/main/webapp/act/process-editor/editor-app/i18n/en.json
  37. BIN src/main/webapp/static/supcan/UninstallSupcan.exe
  38. BIN src/main/webapp/static/supcan/binary/BCV1.bin
  39. BIN src/main/webapp/static/supcan/binary/BCV1.x64.bin
  40. BIN src/main/webapp/static/supcan/binary/BCV4.bin
  41. BIN src/main/webapp/static/supcan/binary/BCV4.x64.bin
  42. BIN src/main/webapp/static/supcan/binary/LuxForm.bin
  43. BIN src/main/webapp/static/supcan/binary/LuxForm.x64.bin
  44. BIN src/main/webapp/static/supcan/binary/LuxFormC.bin
  45. BIN src/main/webapp/static/supcan/binary/LuxFormC.x64.bin
  46. BIN src/main/webapp/static/supcan/binary/WebFile.bin
  47. BIN src/main/webapp/static/supcan/binary/WebFile.x64.bin
  48. +0 −97 src/main/webapp/static/supcan/binary/dynaload.js
  49. BIN src/main/webapp/static/supcan/binary/gzip.bin
  50. BIN src/main/webapp/static/supcan/binary/license.bin
  51. BIN src/main/webapp/static/supcan/binary/msoffice.bin
  52. BIN src/main/webapp/static/supcan/binary/msoffice.x64.bin
  53. +0 −179 src/main/webapp/static/supcan/binary/supcan(带注释).xml
  54. BIN src/main/webapp/static/supcan/binary/supcan.crx
  55. +0 −82 src/main/webapp/static/supcan/binary/supcan.xml
  56. BIN src/main/webapp/static/supcan/binary/supcan.xpi
  57. BIN src/main/webapp/static/supcan/binary/supcan2.cab
  58. BIN src/main/webapp/static/supcan/binary/supcan2.x64.cab
  59. BIN src/main/webapp/static/supcan/doc/dev/Toolbar1.bmp
  60. BIN src/main/webapp/static/supcan/doc/dev/Toolbar2.bmp
  61. BIN src/main/webapp/static/supcan/doc/dev/Toolbar32.bmp
  62. BIN src/main/webapp/static/supcan/doc/dev/Toolbar4.bmp
  63. +0 −393 src/main/webapp/static/supcan/doc/dev/act.htm
  64. BIN src/main/webapp/static/supcan/doc/dev/act1.png
  65. +0 −156 src/main/webapp/static/supcan/doc/dev/addi1.htm
  66. +0 −119 src/main/webapp/static/supcan/doc/dev/addi2.htm
  67. +0 −131 src/main/webapp/static/supcan/doc/dev/addi3.htm
  68. BIN src/main/webapp/static/supcan/doc/dev/arrowup.gif
  69. BIN src/main/webapp/static/supcan/doc/dev/as1.png
  70. BIN src/main/webapp/static/supcan/doc/dev/as2.png
  71. BIN src/main/webapp/static/supcan/doc/dev/button_cancel.png
  72. BIN src/main/webapp/static/supcan/doc/dev/button_ok.png
  73. +0 −177 src/main/webapp/static/supcan/doc/dev/chart.htm
  74. BIN src/main/webapp/static/supcan/doc/dev/chrome.bmp
  75. +0 −86 src/main/webapp/static/supcan/doc/dev/designer.htm
  76. BIN src/main/webapp/static/supcan/doc/dev/devsh.jpg
  77. BIN src/main/webapp/static/supcan/doc/dev/document.bmp
  78. BIN src/main/webapp/static/supcan/doc/dev/documentg.bmp
  79. BIN src/main/webapp/static/supcan/doc/dev/dom.png
  80. BIN src/main/webapp/static/supcan/doc/dev/droplists.png
  81. +0 −70 src/main/webapp/static/supcan/doc/dev/edit.htm
  82. BIN src/main/webapp/static/supcan/doc/dev/err1.jpg
  83. +0 −494 src/main/webapp/static/supcan/doc/dev/events.xml
  84. BIN src/main/webapp/static/supcan/doc/dev/ff.bmp
  85. +0 −103 src/main/webapp/static/supcan/doc/dev/freeform1.htm
  86. +0 −166 src/main/webapp/static/supcan/doc/dev/freeform2.htm
  87. BIN src/main/webapp/static/supcan/doc/dev/freeform6.png
  88. +0 −123 src/main/webapp/static/supcan/doc/dev/func_chart.xml
  89. +0 −45 src/main/webapp/static/supcan/doc/dev/func_designer.xml
  90. +0 −655 src/main/webapp/static/supcan/doc/dev/func_freeform.xml
  91. +0 −49 src/main/webapp/static/supcan/doc/dev/func_global_dlg.xml
  92. +0 −41 src/main/webapp/static/supcan/doc/dev/func_global_dlg_inner.xml
  93. +0 −131 src/main/webapp/static/supcan/doc/dev/func_global_dom.xml
  94. +0 −60 src/main/webapp/static/supcan/doc/dev/func_global_droplist.xml
  95. +0 −59 src/main/webapp/static/supcan/doc/dev/func_global_msg.xml
  96. +0 −283 src/main/webapp/static/supcan/doc/dev/func_global_other.xml
  97. +0 −41 src/main/webapp/static/supcan/doc/dev/func_global_valid.xml
  98. +0 −584 src/main/webapp/static/supcan/doc/dev/func_pub.xml
  99. +0 −580 src/main/webapp/static/supcan/doc/dev/func_pub_big5.xml
  100. +0 −1,191 src/main/webapp/static/supcan/doc/dev/func_report.xml
  101. +0 −1,242 src/main/webapp/static/supcan/doc/dev/func_treelist.xml
  102. +0 −185 src/main/webapp/static/supcan/doc/dev/functable.js
  103. +0 −159 src/main/webapp/static/supcan/doc/dev/functable_big5.js
  104. BIN src/main/webapp/static/supcan/doc/dev/glass.jpg
  105. +0 −238 src/main/webapp/static/supcan/doc/dev/globalfunction.htm
  106. BIN src/main/webapp/static/supcan/doc/dev/ie.bmp
  107. +0 −6 src/main/webapp/static/supcan/doc/dev/index.htm
  108. BIN src/main/webapp/static/supcan/doc/dev/kdm.bmp
  109. +0 −197 src/main/webapp/static/supcan/doc/dev/left.htm
  110. +0 −1 src/main/webapp/static/supcan/doc/dev/nstd.js
  111. +0 −265 src/main/webapp/static/supcan/doc/dev/other1.htm
  112. +0 −334 src/main/webapp/static/supcan/doc/dev/other3.htm
  113. BIN src/main/webapp/static/supcan/doc/dev/pluginu.jpg
  114. BIN src/main/webapp/static/supcan/doc/dev/prop.bmp
  115. +0 −245 src/main/webapp/static/supcan/doc/dev/pub.htm
  116. +0 −197 src/main/webapp/static/supcan/doc/dev/pub_big5.htm
  117. BIN src/main/webapp/static/supcan/doc/dev/radio.png
  118. +0 −143 src/main/webapp/static/supcan/doc/dev/report1.htm
  119. BIN src/main/webapp/static/supcan/doc/dev/report1.png
  120. BIN src/main/webapp/static/supcan/doc/dev/report10.png
  121. BIN src/main/webapp/static/supcan/doc/dev/report11.png
  122. BIN src/main/webapp/static/supcan/doc/dev/report12.png
  123. BIN src/main/webapp/static/supcan/doc/dev/report13.jpg
  124. +0 −352 src/main/webapp/static/supcan/doc/dev/report2.htm
  125. BIN src/main/webapp/static/supcan/doc/dev/report2.png
  126. +0 −157 src/main/webapp/static/supcan/doc/dev/report3.htm
  127. BIN src/main/webapp/static/supcan/doc/dev/report3.png
  128. +0 −203 src/main/webapp/static/supcan/doc/dev/report4.htm
  129. BIN src/main/webapp/static/supcan/doc/dev/report4.png
  130. +0 −49 src/main/webapp/static/supcan/doc/dev/report5.htm
  131. BIN src/main/webapp/static/supcan/doc/dev/report5.png
  132. +0 −38 src/main/webapp/static/supcan/doc/dev/report6.htm
  133. BIN src/main/webapp/static/supcan/doc/dev/report6.jpg
  134. +0 −112 src/main/webapp/static/supcan/doc/dev/report7.htm
  135. BIN src/main/webapp/static/supcan/doc/dev/report7.jpg
  136. BIN src/main/webapp/static/supcan/doc/dev/report8.jpg
  137. BIN src/main/webapp/static/supcan/doc/dev/report9.png
  138. +0 −121 src/main/webapp/static/supcan/doc/dev/reportds.htm
  139. BIN src/main/webapp/static/supcan/doc/dev/reportds1.jpg
  140. BIN src/main/webapp/static/supcan/doc/dev/reportds10.jpg
  141. BIN src/main/webapp/static/supcan/doc/dev/reportds11.jpg
  142. BIN src/main/webapp/static/supcan/doc/dev/reportds12.jpg
  143. BIN src/main/webapp/static/supcan/doc/dev/reportds13.jpg
  144. BIN src/main/webapp/static/supcan/doc/dev/reportds3.jpg
  145. BIN src/main/webapp/static/supcan/doc/dev/reportds4.jpg
  146. BIN src/main/webapp/static/supcan/doc/dev/reportds5.jpg
  147. BIN src/main/webapp/static/supcan/doc/dev/reportds6.jpg
  148. BIN src/main/webapp/static/supcan/doc/dev/reportds7.jpg
  149. BIN src/main/webapp/static/supcan/doc/dev/reportds8.jpg
  150. BIN src/main/webapp/static/supcan/doc/dev/reportds9.jpg
  151. +0 −212 src/main/webapp/static/supcan/doc/dev/server1.htm
  152. BIN src/main/webapp/static/supcan/doc/dev/server1.png
  153. BIN src/main/webapp/static/supcan/doc/dev/server2.png
  154. BIN src/main/webapp/static/supcan/doc/dev/server3.png
  155. +0 −33 src/main/webapp/static/supcan/doc/dev/server4.htm
  156. BIN src/main/webapp/static/supcan/doc/dev/server4.png
  157. +0 −40 src/main/webapp/static/supcan/doc/dev/server5.htm
  158. BIN src/main/webapp/static/supcan/doc/dev/server5.jpg
  159. +0 −93 src/main/webapp/static/supcan/doc/dev/server6.htm
  160. +0 −80 src/main/webapp/static/supcan/doc/dev/server7.htm
  161. +0 −42 src/main/webapp/static/supcan/doc/dev/server8.htm
  162. BIN src/main/webapp/static/supcan/doc/dev/text.png
  163. +0 −96 src/main/webapp/static/supcan/doc/dev/toolbar.xml
  164. BIN src/main/webapp/static/supcan/doc/dev/toolbox.bmp
  165. BIN src/main/webapp/static/supcan/doc/dev/trademobile.jpg
  166. +0 −183 src/main/webapp/static/supcan/doc/dev/tree.htm
  167. BIN src/main/webapp/static/supcan/doc/dev/treeleaf.png
  168. +0 −181 src/main/webapp/static/supcan/doc/dev/treelist1.htm
  169. BIN src/main/webapp/static/supcan/doc/dev/treelist1.jpg
  170. BIN src/main/webapp/static/supcan/doc/dev/treelist10.png
  171. BIN src/main/webapp/static/supcan/doc/dev/treelist11.png
  172. +0 −382 src/main/webapp/static/supcan/doc/dev/treelist2.htm
  173. BIN src/main/webapp/static/supcan/doc/dev/treelist2.jpg
  174. +0 −86 src/main/webapp/static/supcan/doc/dev/treelist3.htm
  175. BIN src/main/webapp/static/supcan/doc/dev/treelist3.jpg
  176. +0 −118 src/main/webapp/static/supcan/doc/dev/treelist4.htm
  177. BIN src/main/webapp/static/supcan/doc/dev/treelist4.png
  178. +0 −66 src/main/webapp/static/supcan/doc/dev/treelist5.htm
  179. BIN src/main/webapp/static/supcan/doc/dev/treelist5.png
  180. BIN src/main/webapp/static/supcan/doc/dev/treelist6.png
  181. BIN src/main/webapp/static/supcan/doc/dev/treelist7.png
  182. BIN src/main/webapp/static/supcan/doc/dev/treelist8.png
  183. BIN src/main/webapp/static/supcan/doc/dev/treelist9.png
  184. BIN src/main/webapp/static/supcan/doc/dev/treenode.png
  185. +0 −85 src/main/webapp/static/supcan/doc/dev/upload.htm
  186. BIN src/main/webapp/static/supcan/doc/dev/why.bmp
  187. +0 −26 src/main/webapp/static/supcan/doc/format_freeform/byxml.htm
  188. BIN src/main/webapp/static/supcan/doc/format_freeform/document.bmp
  189. +0 −21 src/main/webapp/static/supcan/doc/format_freeform/index.htm
  190. +0 −103 src/main/webapp/static/supcan/doc/format_freeform/left.htm
  191. +0 −120 src/main/webapp/static/supcan/doc/format_freeform/main1.htm
  192. +0 −46 src/main/webapp/static/supcan/doc/format_freeform/main2.htm
  193. +0 −36 src/main/webapp/static/supcan/doc/format_freeform/main3.htm
  194. +0 −42 src/main/webapp/static/supcan/doc/format_freeform/main4.htm
  195. +0 −170 src/main/webapp/static/supcan/doc/format_freeform/main5.htm
  196. +0 −10 src/main/webapp/static/supcan/doc/format_freeform/object.browser.xml
  197. +0 −24 src/main/webapp/static/supcan/doc/format_freeform/object.component.xml
  198. +0 −34 src/main/webapp/static/supcan/doc/format_freeform/object.freeformtree.xml
  199. +0 −19 src/main/webapp/static/supcan/doc/format_freeform/object.groupbox.xml
  200. +0 −44 src/main/webapp/static/supcan/doc/format_freeform/object.groupboxex.xml
  201. +0 −70 src/main/webapp/static/supcan/doc/format_freeform/object.image.xml
  202. +0 −105 src/main/webapp/static/supcan/doc/format_freeform/object.imageflow.xml
  203. +0 −409 src/main/webapp/static/supcan/doc/format_freeform/object.input.xml
  204. +0 −26 src/main/webapp/static/supcan/doc/format_freeform/object.line.xml
  205. +0 −96 src/main/webapp/static/supcan/doc/format_freeform/object.pager.xml
  206. +0 −59 src/main/webapp/static/supcan/doc/format_freeform/object.rect.xml
  207. +0 −29 src/main/webapp/static/supcan/doc/format_freeform/object.tablelayout.col.xml
  208. +0 −39 src/main/webapp/static/supcan/doc/format_freeform/object.tablelayout.tr.td.xml
  209. +0 −29 src/main/webapp/static/supcan/doc/format_freeform/object.tablelayout.tr.xml
  210. +0 −24 src/main/webapp/static/supcan/doc/format_freeform/object.tablelayout.xml
  211. +0 −137 src/main/webapp/static/supcan/doc/format_freeform/object.text.xml
  212. +0 −73 src/main/webapp/static/supcan/doc/format_freeform/properties.background.xml
  213. +0 −63 src/main/webapp/static/supcan/doc/format_freeform/properties.xml
  214. +0 −72 src/main/webapp/static/supcan/doc/format_freeform/tab.htm
  215. BIN src/main/webapp/static/supcan/doc/format_freeform/tab.png
  216. +0 −531 src/main/webapp/static/supcan/doc/format_treelist/cols.col.xml
  217. BIN src/main/webapp/static/supcan/doc/format_treelist/document.bmp
  218. +0 −108 src/main/webapp/static/supcan/doc/format_treelist/droplists.droplist.xml
  219. +0 −6 src/main/webapp/static/supcan/doc/format_treelist/index.htm
  220. +0 −71 src/main/webapp/static/supcan/doc/format_treelist/left.htm
  221. +0 −40 src/main/webapp/static/supcan/doc/format_treelist/main1.htm
  222. +0 −238 src/main/webapp/static/supcan/doc/format_treelist/main2.htm
  223. +0 −135 src/main/webapp/static/supcan/doc/format_treelist/main3.htm
  224. BIN src/main/webapp/static/supcan/doc/format_treelist/printpage.png
  225. +0 −73 src/main/webapp/static/supcan/doc/format_treelist/properties.background.xml
  226. +0 −571 src/main/webapp/static/supcan/doc/format_treelist/properties.xml
  227. +0 −8 src/main/webapp/static/supcan/doc/index.htm
  228. +0 −233 src/main/webapp/static/supcan/doc/proptable.js
  229. +0 −24 src/main/webapp/static/supcan/doc/temp1.css
  230. +0 −67 src/main/webapp/static/supcan/doc/top.htm
  231. +1 −1 src/main/webapp/static/supcan/supcan.js
@@ -6,10 +6,10 @@ create table ACT_GE_PROPERTY (
);
insert into ACT_GE_PROPERTY
-values ('schema.version', '5.15.1', 1);
+values ('schema.version', '5.21.0.0', 1);
insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(5.15.1)', 1);
+values ('schema.history', 'create(5.21.0.0)', 1);
insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);
@@ -66,6 +66,8 @@ create table ACT_RU_EXECUTION (
SUSPENSION_STATE_ integer,
CACHED_ENT_STATE_ integer,
TENANT_ID_ varchar(255) default '',
+ NAME_ varchar(255),
+ LOCK_TIME_ timestamp,
primary key (ID_)
);
@@ -102,6 +104,7 @@ create table ACT_RE_PROCDEF (
DGRM_RESOURCE_NAME_ varchar(4000),
DESCRIPTION_ varchar(4000),
HAS_START_FORM_KEY_ smallint check(HAS_START_FORM_KEY_ in (1,0)),
+ HAS_GRAPHICAL_NOTATION_ smallint check(HAS_GRAPHICAL_NOTATION_ in (1,0)),
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(255) not null default '',
primary key (ID_)
@@ -126,6 +129,7 @@ create table ACT_RU_TASK (
CATEGORY_ varchar(255),
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(255) default '',
+ FORM_KEY_ varchar(255),
primary key (ID_)
);
@@ -172,6 +176,30 @@ create table ACT_RU_EVENT_SUBSCR (
primary key (ID_)
);
+create table ACT_EVT_LOG (
+ LOG_NR_ bigint not null GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),
+ TYPE_ varchar(64),
+ PROC_DEF_ID_ varchar(64),
+ PROC_INST_ID_ varchar(64),
+ EXECUTION_ID_ varchar(64),
+ TASK_ID_ varchar(64),
+ TIME_STAMP_ timestamp not null,
+ USER_ID_ varchar(255),
+ DATA_ BLOB,
+ LOCK_OWNER_ varchar(255),
+ LOCK_TIME_ timestamp,
+ IS_PROCESSED_ integer default 0,
+ primary key (LOG_NR_)
+);
+
+create table ACT_PROCDEF_INFO (
+ ID_ varchar(64) not null,
+ PROC_DEF_ID_ varchar(64) not null,
+ REV_ integer,
+ INFO_JSON_ID_ varchar(64),
+ primary key (ID_)
+);
+
create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
@@ -188,13 +216,13 @@ create index ACT_IDX_VARIABLE_EXEC on ACT_RU_VARIABLE(EXECUTION_ID_);
create index ACT_IDX_VARIABLE_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
create index ACT_IDX_IDENT_LNK_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
create index ACT_IDX_IDENT_LNK_PROCINST on ACT_RU_IDENTITYLINK(PROC_INST_ID_);
-create index ACT_IDX_IDENT_LNK_PROCDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
create index ACT_IDX_EXEC_PROC_INST_ID on ACT_RU_EXECUTION(PROC_INST_ID_);
create index ACT_IDX_TASK_PROC_DEF_ID on ACT_RU_TASK(PROC_DEF_ID_);
create index ACT_IDX_EVENT_SUBSCR_EXEC_ID on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
create index ACT_IDX_JOB_EXCEPTION_STACK_ID on ACT_RU_JOB(EXCEPTION_STACK_ID_);
+create index ACT_IDX_INFO_PROCDEF on ACT_PROCDEF_INFO(PROC_DEF_ID_);
alter table ACT_GE_BYTEARRAY
add constraint ACT_FK_BYTEARR_DEPL
@@ -251,9 +279,9 @@ alter table ACT_RU_TASK
references ACT_RU_EXECUTION (ID_);
alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
+ add constraint ACT_FK_TASK_PROCDEF
+ foreign key (PROC_DEF_ID_)
+ references ACT_RE_PROCDEF (ID_);
alter table ACT_RU_VARIABLE
add constraint ACT_FK_VAR_EXE
@@ -294,3 +322,17 @@ alter table ACT_RE_MODEL
add constraint ACT_FK_MODEL_DEPLOYMENT
foreign key (DEPLOYMENT_ID_)
references ACT_RE_DEPLOYMENT (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_FK_INFO_JSON_BA
+ foreign key (INFO_JSON_ID_)
+ references ACT_GE_BYTEARRAY (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_FK_INFO_PROCDEF
+ foreign key (PROC_DEF_ID_)
+ references ACT_RE_PROCDEF (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_UNIQ_INFO_PROCDEF
+ unique (PROC_DEF_ID_);
@@ -12,6 +12,7 @@ create table ACT_HI_PROCINST (
SUPER_PROCESS_INSTANCE_ID_ varchar(64),
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(255) default '',
+ NAME_ varchar(255),
primary key (ID_)
);
@@ -121,6 +122,7 @@ create table ACT_HI_ATTACHMENT (
PROC_INST_ID_ varchar(64),
URL_ varchar(4000),
CONTENT_ID_ varchar(64),
+ TIME_ timestamp,
primary key (ID_)
);
@@ -145,8 +147,10 @@ create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
+create index ACT_IDX_HI_PROCVAR_TASK_ID on ACT_HI_VARINST(TASK_ID_);
create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
create index ACT_IDX_HI_ACT_INST_EXEC on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_);
create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
create index ACT_IDX_HI_IDENT_LNK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
create index ACT_IDX_HI_IDENT_LNK_PROCINST on ACT_HI_IDENTITYLINK(PROC_INST_ID_);
+create index ACT_IDX_HI_TASK_INST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
@@ -6,10 +6,10 @@ create table ACT_GE_PROPERTY (
);
insert into ACT_GE_PROPERTY
-values ('schema.version', '5.15.1', 1);
+values ('schema.version', '5.21.0.0', 1);
insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(5.15.1)', 1);
+values ('schema.history', 'create(5.21.0.0)', 1);
insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);
@@ -66,6 +66,8 @@ create table ACT_RU_EXECUTION (
SUSPENSION_STATE_ integer,
CACHED_ENT_STATE_ integer,
TENANT_ID_ varchar(255) default '',
+ NAME_ varchar(255),
+ LOCK_TIME_ timestamp,
primary key (ID_)
);
@@ -102,6 +104,7 @@ create table ACT_RE_PROCDEF (
DGRM_RESOURCE_NAME_ varchar(4000),
DESCRIPTION_ varchar(4000),
HAS_START_FORM_KEY_ bit,
+ HAS_GRAPHICAL_NOTATION_ bit,
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(255) default '',
primary key (ID_)
@@ -126,6 +129,7 @@ create table ACT_RU_TASK (
CATEGORY_ varchar(255),
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(255) default '',
+ FORM_KEY_ varchar(255),
primary key (ID_)
);
@@ -172,13 +176,37 @@ create table ACT_RU_EVENT_SUBSCR (
primary key (ID_)
);
+create table ACT_EVT_LOG (
+ LOG_NR_ identity,
+ TYPE_ varchar(64),
+ PROC_DEF_ID_ varchar(64),
+ PROC_INST_ID_ varchar(64),
+ EXECUTION_ID_ varchar(64),
+ TASK_ID_ varchar(64),
+ TIME_STAMP_ timestamp not null,
+ USER_ID_ varchar(255),
+ DATA_ longvarbinary,
+ LOCK_OWNER_ varchar(255),
+ LOCK_TIME_ timestamp,
+ IS_PROCESSED_ bit default 0
+);
+
+create table ACT_PROCDEF_INFO (
+ ID_ varchar(64) not null,
+ PROC_DEF_ID_ varchar(64) not null,
+ REV_ integer,
+ INFO_JSON_ID_ varchar(64),
+ primary key (ID_)
+);
+
create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
+create index ACT_IDX_INFO_PROCDEF on ACT_PROCDEF_INFO(PROC_DEF_ID_);
alter table ACT_GE_BYTEARRAY
add constraint ACT_FK_BYTEARR_DEPL
@@ -277,4 +305,18 @@ alter table ACT_RE_MODEL
alter table ACT_RE_MODEL
add constraint ACT_FK_MODEL_DEPLOYMENT
foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
+ references ACT_RE_DEPLOYMENT (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_FK_INFO_JSON_BA
+ foreign key (INFO_JSON_ID_)
+ references ACT_GE_BYTEARRAY (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_FK_INFO_PROCDEF
+ foreign key (PROC_DEF_ID_)
+ references ACT_RE_PROCDEF (ID_);
+
+alter table ACT_PROCDEF_INFO
+ add constraint ACT_UNIQ_INFO_PROCDEF
+ unique (PROC_DEF_ID_);
@@ -12,6 +12,7 @@ create table ACT_HI_PROCINST (
SUPER_PROCESS_INSTANCE_ID_ varchar(64),
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(255) default '',
+ NAME_ varchar(255),
primary key (ID_),
unique (PROC_INST_ID_)
);
@@ -119,6 +120,7 @@ create table ACT_HI_ATTACHMENT (
PROC_INST_ID_ varchar(64),
URL_ varchar(4000),
CONTENT_ID_ varchar(64),
+ TIME_ timestamp,
primary key (ID_)
);
create table ACT_HI_IDENTITYLINK (
@@ -142,9 +144,11 @@ create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
+create index ACT_IDX_HI_PROCVAR_TASK_ID on ACT_HI_VARINST(TASK_ID_);
create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
create index ACT_IDX_HI_IDENT_LNK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
create index ACT_IDX_HI_IDENT_LNK_PROCINST on ACT_HI_IDENTITYLINK(PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_EXEC on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_);
+create index ACT_IDX_HI_TASK_INST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
Oops, something went wrong.

0 comments on commit ec17266

Please sign in to comment.