diff --git a/jbpm-installer/db/ddl-scripts/db2/db2-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/db2/db2-jbpm-schema.sql index 6b3c9f179d..814c4de5e2 100644 --- a/jbpm-installer/db/ddl-scripts/db2/db2-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/db2/db2-jbpm-schema.sql @@ -731,3 +731,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/derby/derby-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/derby/derby-jbpm-schema.sql index be53b9163a..e47fbaf029 100644 --- a/jbpm-installer/db/ddl-scripts/derby/derby-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/derby/derby-jbpm-schema.sql @@ -732,3 +732,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/h2/h2-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/h2/h2-jbpm-schema.sql index 4a584e44ed..ff32a46ddc 100644 --- a/jbpm-installer/db/ddl-scripts/h2/h2-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/h2/h2-jbpm-schema.sql @@ -733,3 +733,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/hsqldb/hsqldb-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/hsqldb/hsqldb-jbpm-schema.sql index 02a4c9fbc0..cfce39b14a 100644 --- a/jbpm-installer/db/ddl-scripts/hsqldb/hsqldb-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/hsqldb/hsqldb-jbpm-schema.sql @@ -734,3 +734,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql index aa1a9eaf2c..5dbbb0f196 100644 --- a/jbpm-installer/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql @@ -779,3 +779,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/mysqlinnodb/mysql-innodb-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/mysqlinnodb/mysql-innodb-jbpm-schema.sql index b802029580..102e2e7929 100644 --- a/jbpm-installer/db/ddl-scripts/mysqlinnodb/mysql-innodb-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/mysqlinnodb/mysql-innodb-jbpm-schema.sql @@ -779,3 +779,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/oracle/oracle-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/oracle/oracle-jbpm-schema.sql index 8f04206aca..ee46249756 100644 --- a/jbpm-installer/db/ddl-scripts/oracle/oracle-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/oracle/oracle-jbpm-schema.sql @@ -791,3 +791,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/postgresql/postgresql-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/postgresql/postgresql-jbpm-schema.sql index f39a663529..baa6e69169 100644 --- a/jbpm-installer/db/ddl-scripts/postgresql/postgresql-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/postgresql/postgresql-jbpm-schema.sql @@ -792,3 +792,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/sqlserver/sqlserver-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/sqlserver/sqlserver-jbpm-schema.sql index 18f530e771..c02b8b1c4f 100644 --- a/jbpm-installer/db/ddl-scripts/sqlserver/sqlserver-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/sqlserver/sqlserver-jbpm-schema.sql @@ -734,3 +734,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/sqlserver2008/sqlserver2008-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/sqlserver2008/sqlserver2008-jbpm-schema.sql index 2de092336f..e53d8d2f3e 100644 --- a/jbpm-installer/db/ddl-scripts/sqlserver2008/sqlserver2008-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/sqlserver2008/sqlserver2008-jbpm-schema.sql @@ -734,3 +734,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date); create index IDX_PInstLog_status on ProcessInstanceLog(status); create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey); + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId); diff --git a/jbpm-installer/db/ddl-scripts/sybase/sybase-jbpm-schema.sql b/jbpm-installer/db/ddl-scripts/sybase/sybase-jbpm-schema.sql index fcf5a808c5..7b2035ee22 100644 --- a/jbpm-installer/db/ddl-scripts/sybase/sybase-jbpm-schema.sql +++ b/jbpm-installer/db/ddl-scripts/sybase/sybase-jbpm-schema.sql @@ -822,3 +822,11 @@ create index IDX_PInstLog_start_date on ProcessInstanceLog(start_date) create index IDX_PInstLog_status on ProcessInstanceLog(status) create index IDX_PInstLog_correlation on ProcessInstanceLog(correlationKey) + + create index IDX_VInstLog_pInstId on VariableInstanceLog(processInstanceId); + create index IDX_VInstLog_varId on VariableInstanceLog(variableId); + create index IDX_VInstLog_pId on VariableInstanceLog(processId); + + create index IDX_NInstLog_pInstId on NodeInstanceLog(processInstanceId); + create index IDX_NInstLog_nodeType on NodeInstanceLog(nodeType); + create index IDX_NInstLog_pId on NodeInstanceLog(processId);