Skip to content

Commit

Permalink
JBPM-9817: Adding IDX_TaskEvent_processInstance to all db dialects
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalCervenansky authored and elguardian committed Jul 30, 2021
1 parent 8e3ea62 commit 643fb10
Show file tree
Hide file tree
Showing 38 changed files with 44 additions and 22 deletions.
Expand Up @@ -768,6 +768,7 @@
create index IDX_EventTypes_element ON EventTypes(element);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_CMI_Context ON ContextMappingInfo(CONTEXT_ID);
create index IDX_CMI_KSession ON ContextMappingInfo(KSESSION_ID);
Expand Down
Expand Up @@ -767,6 +767,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -769,6 +769,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -770,6 +770,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -787,6 +787,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);
create index IDX_EventTypes_compound ON EventTypes(InstanceId, element);
Expand Down
Expand Up @@ -790,6 +790,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);
create index IDX_EventTypes_compound ON EventTypes(InstanceId, element);
Expand Down
Expand Up @@ -835,6 +835,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -170,6 +170,7 @@ create index IDX_Task_workItemId on Task (workItemId);
create index IDX_TaskComments_CreatedBy on task_comment (addedBy_id);
create index IDX_TaskComments_Id on task_comment (TaskData_Comments_Id);
create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
create index IDX_TaskVariableImpl_taskId on TaskVariableImpl (taskId);
create index IDX_TaskVariableImpl_pInstId on TaskVariableImpl (processInstanceId);
create index IDX_TaskVariableImpl_processId on TaskVariableImpl (processId);
Expand Down
Expand Up @@ -170,6 +170,7 @@ create index IDX_Task_workItemId on Task (workItemId);
create index IDX_TaskComments_CreatedBy on task_comment (addedBy_id);
create index IDX_TaskComments_Id on task_comment (TaskData_Comments_Id);
create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
create index IDX_TaskVariableImpl_taskId on TaskVariableImpl (taskId);
create index IDX_TaskVariableImpl_pInstId on TaskVariableImpl (processInstanceId);
create index IDX_TaskVariableImpl_processId on TaskVariableImpl (processId);
Expand Down
Expand Up @@ -836,6 +836,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -170,6 +170,7 @@ create index IDX_Task_workItemId on Task (workItemId);
create index IDX_TaskComments_CreatedBy on task_comment (addedBy_id);
create index IDX_TaskComments_Id on task_comment (TaskData_Comments_Id);
create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
create index IDX_TaskVariableImpl_taskId on TaskVariableImpl (taskId);
create index IDX_TaskVariableImpl_pInstId on TaskVariableImpl (processInstanceId);
create index IDX_TaskVariableImpl_processId on TaskVariableImpl (processId);
Expand Down
Expand Up @@ -170,6 +170,7 @@ create index IDX_Task_workItemId on Task (workItemId);
create index IDX_TaskComments_CreatedBy on task_comment (addedBy_id);
create index IDX_TaskComments_Id on task_comment (TaskData_Comments_Id);
create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
create index IDX_TaskVariableImpl_taskId on TaskVariableImpl (taskId);
create index IDX_TaskVariableImpl_pInstId on TaskVariableImpl (processInstanceId);
create index IDX_TaskVariableImpl_processId on TaskVariableImpl (processId);
Expand Down
Expand Up @@ -770,6 +770,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -770,6 +770,7 @@
create index IDX_Task_workItemId on Task(workItemId);

create index IDX_TaskEvent_taskId on TaskEvent (taskId);
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

create index IDX_EventTypes_element ON EventTypes(element);

Expand Down
Expand Up @@ -914,6 +914,9 @@
create index IDX_TaskEvent_taskId on TaskEvent (taskId)
go

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId)
go

create index IDX_EventTypes_element ON EventTypes(element)
go

Expand Down
Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,6 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);


Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,6 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);


Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,6 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);


Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date datetime;
alter table TaskEvent add column end_date datetime;
alter table NodeInstanceLog add column end_date datetime;
alter table VariableInstanceLog add column end_date datetime;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date datetime;
alter table TaskEvent add column end_date datetime;
alter table NodeInstanceLog add column end_date datetime;
alter table VariableInstanceLog add column end_date datetime;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date datetime;
alter table TaskEvent add column end_date datetime;
alter table NodeInstanceLog add column end_date datetime;
alter table VariableInstanceLog add column end_date datetime;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,4 @@ alter table BAMTaskSummary add column end_date datetime;
alter table TaskEvent add column end_date datetime;
alter table NodeInstanceLog add column end_date datetime;
alter table VariableInstanceLog add column end_date datetime;


create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);
Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add end_date timestamp;
alter table TaskEvent add end_date timestamp;
alter table NodeInstanceLog add end_date timestamp;
alter table VariableInstanceLog add end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add end_date timestamp;
alter table TaskEvent add end_date timestamp;
alter table NodeInstanceLog add end_date timestamp;
alter table VariableInstanceLog add end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,6 @@ alter table BAMTaskSummary add column end_date timestamp;
alter table TaskEvent add column end_date timestamp;
alter table NodeInstanceLog add column end_date timestamp;
alter table VariableInstanceLog add column end_date timestamp;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);


Expand Up @@ -3,5 +3,7 @@ alter table BAMTaskSummary add end_date datetime;
alter table TaskEvent add end_date datetime;
alter table NodeInstanceLog add end_date datetime;
alter table VariableInstanceLog add end_date datetime;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);



Expand Up @@ -3,5 +3,7 @@ alter table BAMTaskSummary add end_date datetime;
alter table TaskEvent add end_date datetime;
alter table NodeInstanceLog add end_date datetime;
alter table VariableInstanceLog add end_date datetime;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);



Expand Up @@ -3,5 +3,5 @@ alter table BAMTaskSummary add end_date datetime;
alter table TaskEvent add end_date datetime;
alter table NodeInstanceLog add end_date datetime;
alter table VariableInstanceLog add end_date datetime;

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);

Expand Up @@ -3,5 +3,6 @@ alter table BAMTaskSummary add end_date datetime;
alter table TaskEvent add end_date datetime;
alter table NodeInstanceLog add end_date datetime;
alter table VariableInstanceLog add end_date datetime;
create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId);


Expand Up @@ -8,5 +8,6 @@ alter table NodeInstanceLog add column end_date datetime
go
alter table VariableInstanceLog add column end_date datetime
go

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId)
go

Expand Up @@ -8,5 +8,6 @@ alter table NodeInstanceLog add column end_date datetime
go
alter table VariableInstanceLog add column end_date datetime
go

create index IDX_TaskEvent_processInstanceId on TaskEvent (processInstanceId)
go

Expand Up @@ -44,7 +44,7 @@
*
*/
@Entity
@Table(name = "TaskEvent", indexes = {@Index(name = "IDX_TaskEvent_taskId", columnList = "taskId")})
@Table(name = "TaskEvent", indexes = {@Index(name = "IDX_TaskEvent_taskId", columnList = "taskId"), @Index(name = "IDX_AuditTaskImpl_pInstId", columnList = "processInstanceId")})
@SequenceGenerator(name = "taskEventIdSeq", sequenceName = "TASK_EVENT_ID_SEQ")
public class TaskEventImpl implements TaskEvent, Serializable {

Expand Down

0 comments on commit 643fb10

Please sign in to comment.